自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(44)
  • 收藏
  • 关注

原创 购物车

布局<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical"> <L

2018-01-19 13:28:13 276

原创 登录注册

依赖compile 'com.android.support.constraint:constraint-layout:1.0.2' compile 'io.reactivex.rxjava2:rxjava:2.1.1' compile 'io.reactivex.rxjava2:rxandroid:2.0.1' compile 'com.squareup.retrofit

2018-01-19 13:19:44 459

原创 引导页+导航页

启动页布局<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:background="@drawable/b1i" android:layout_width="match_parent" android:layout_height="match_parent"

2018-01-09 18:31:14 1575

原创 秒杀专场

电商中的秒杀是根据时间段更新的,所以要获取到系统时间,然后对其进行数据处理以达到倒计时效果.说不好了,直接上代码自定义控件布局<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_he

2018-01-01 20:48:25 252

原创 Retrofit+MVP

导入依赖[java] view plain copycompile 'com.squareup.retrofit2:retrofit:2.0.0'  compile 'com.squareup.retrofit2:converter-gson:2.0.2'  compile 'com.google.code.gson:gson:2.8.2' 

2017-12-30 09:25:30 313

原创 电商独立购物车

常用依赖包 compile 'com.github.bumptech.glide:glide:3.6.0' compile 'com.jakewharton:butterknife:8.8.1' annotationProcessor 'com.jakewharton:butterknife-compiler:8.8.1' compile 'io.reactivex.

2017-12-21 09:05:44 313

原创 倒计时 Timer和handler

Timer final Timer timer = new Timer(); timer.schedule(new TimerTask() { int i = 4; @Override public void run() { AdActivity.this.runOnUiTh

2017-12-20 11:41:13 237

原创 ijk简单播放视屏

导依赖compile 'com.dou361.ijkplayer:jjdxm-ijkplayer:1.0.5'2.如果全局播放就不用粘贴布局了,若小块播放粘贴布局<include layout="@layout/simple_player_view_player" android:layout_width="match_parent" and

2017-12-20 11:05:04 314

原创 RxJava+Retrofit+MVP

导依赖 compile 'io.reactivex.rxjava2:rxjava:2.1.7' compile 'io.reactivex.rxjava2:rxandroid:2.0.1' compile 'com.squareup.retrofit2:retrofit:2.3.0' compile 'com.squareup.retrofit2:converter-

2017-12-19 20:04:14 216

原创 自定义流式布局

自定义流式布局继承ViewGrouppublic class FlowGroupView extends ViewGroup { private List> mAllViews = new ArrayList>(); /** * 记录每一行的高度 */ private List mLineHeight = new ArrayList(); pri

2017-12-19 19:46:48 205

原创 电商分类展示

整体布局<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent"> <com.example.fanjie.jdapp.view.Sor

2017-12-19 19:32:08 359

原创 电商项目搜索自定义组合控件

布局<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent"> <ImageView android:id="@+id/

2017-12-19 19:30:28 405

原创 自定义加减器

自定义控件布局<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="horizontal"

2017-12-19 19:14:42 237

原创 EventBus

导入依赖compile 'org.greenrobot:eventbus:3.1.1'注册(哪接受就在哪个页面注册)EventBus.getDefault().register(this);反注册@Override protected void onDestroy() { super.onDestroy(); EventBus.getDefaul

2017-12-06 14:44:15 201

原创 RecycleView多条目加载

多条目加载的适配器public class RVAdapter extends RecyclerView.Adapter { private Context context; private List ad5; public RVAdapter(Context context, List ad5) { this.context = context;

2017-12-06 14:34:44 203

原创 fresco属性

导入依赖compile 'com.facebook.fresco:fresco:0.12.0'初始化Fresco@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); Fresco.initialize(this);/

2017-12-06 14:14:20 333

原创 Banner

依赖compile 'com.youth.banner:banner:1.4.9' 初始化ImagLoader并在清单文件中注册public class App extends Application { @Override public void onCreate() { super.onCreate(); ImageLoaderConfigur

2017-12-05 19:47:19 255

原创 依赖包

常用依赖和权限compile 'com.squareup.okhttp3:okhttp:3.9.0'compile 'com.android.support:recyclerview-v7:26.0.0-alpha1'compile 'com.github.bumptech.glide:glide:3.7.0'compile 'com.jcodecraeer:xrecyclerview:1.

2017-12-05 19:38:15 412

原创 GreenDao简单操作

配置数据库 DBhelperpublic class DbHelper { private static volatile DbHelper instance; private final DaoSession daoSession; private DbHelper(String name, Context context){ //初始化数据库的一些配置

2017-12-04 08:05:48 244

原创 刷新

mainpublic class MainActivity extends AppCompatActivity implements IView { private Handler handler = new Handler(); private GoodsPresenter presenter; private XRecyclerView xRecyclerView;

2017-11-23 12:59:06 201

原创 RecyclerView自定义点击事件

适配器中设置接口 //自定义点击事件需要接口回调 private MyOnItemClickListener listener; public interface MyOnItemClickListener{ void onClick(View view,int i); } public void setMyOnItemClickListener

2017-11-23 10:22:58 258

原创 Android_BottomTabBar

依赖compile 'com.hjm:BottomTabBar:1.1.1'布局<com.hjm.bottomtabbar.BottomTabBar android:id="@+id/bottom_tab_bar" android:layout_width="match_parent" android:layout_alignParentBottom

2017-11-22 10:37:05 259

转载 Android_XRecyclerView上拉下拉加载数据

一:介绍XRecyclerView对Recyclerview进行了扩展,使用的方式与Recyclerview一样,可实现上拉加载下拉刷新功能二:依赖, manifests文件中加网络权限[java] view plain copycompile 'com.jcodecraeer:xrecyclerview:1.2.

2017-11-22 10:23:32 371

原创 拦截器

public class Logger implements Interceptor { @Override public Response intercept(Chain chain) throws IOException { Request original = chain.request();// HttpUrl url=original.ur

2017-11-22 10:14:27 203

原创 二级列表购物车

大致布局,不洗勿喷购物车布局<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent"> <ExpandableListView

2017-11-19 20:44:44 196

原创 封装OKHttp

自定义接口CallBackpublic interface CallBack { void onSuccess(Object o); void onFailed(Exception e);}封装OKHttppublic class OKHttpUtils { private static volatile OKHttpUtils instance; pri

2017-11-19 20:34:33 225

原创 dp与px换算方法

import android.content.Context;/** * Created by WuXirui * Create Time: 2017/11/1 * Description: */public class DensityUtil { /** * 根据手机的分辨率从 dp 的单位 转成为 px(像素) */ public stati

2017-11-05 20:26:29 590

原创 自定义view设置样式

现在res/values中定义一个attrs.xml,设置view属性 控件布局<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent"

2017-11-05 20:19:21 1153

原创 继承控件

import android.content.Context;import android.graphics.Color;import android.util.AttributeSet;import android.widget.Button;/** * author:Created by WangZhiQiang on 2017/11/2. */public class My

2017-11-05 20:14:42 200

原创 Viewgroup(View容器)

容器内的view<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical">

2017-11-05 20:10:02 424

原创 自绘View

自绘控件import android.content.Context;import android.graphics.Canvas;import android.graphics.Color;import android.graphics.Paint;import android.support.annotation.Nullable;import android.util.Attrib

2017-11-05 20:04:05 189

原创 自定义标题栏组合控件

标题栏布局<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="wrap_content" android:background="#db1010" >

2017-11-05 19:53:36 268

原创 读取进度加载二维码

依赖:compile 'cn.yipianfengye.android:zxing-library:2.2'相机权限 MainActivity()页面布局<com.example.fanjie.mockone.ProgressView android:id="@+id/circleView" android:layout_wid

2017-11-05 19:34:24 351

原创 记录本

html>html lang="en">head> meta charset="UTF-8"> script type="text/javascript" src="angular-1.3.0.js">script> title>Note Booktitle> style type="text/css"> * { marg

2017-10-26 10:26:41 200

原创 订单管理

html>html ng-app="OrderApp">head> meta charset="UTF-8"> title>订单管理title> script type="text/javascript" src="jquery.1.12.4.js">script> script type="text/javascript" src="angular-1.3.0

2017-10-26 10:09:29 380

原创 购物车angular

html>html>head lang="en"> meta charset="UTF-8"> title>title> script type="text/javascript" src="angular-1.3.0.js">script> style> .s{ text-decoration: none;

2017-10-26 08:07:54 236

原创 添加,查询,排序

html>html>head lang="en"> meta charset="UTF-8"> title>title> script type="text/javascript" src="angular-1.3.0.js">script> script type="text/javascript" src="jquery.1.12.4.js">script>

2017-10-23 13:11:34 208

原创 动画H5

html>html>head lang="en"> meta charset="UTF-8"> title>Titletitle> style> span.change:hover{ color: red; font-size:50px ; } a.change:hover

2017-10-08 19:57:30 490

原创 HorizontalScrollView加载信息

public class MainActivity extends AppCompatActivity { private HorizontalScrollView hs; private LinearLayout linearlayout; private ViewPager viewpager; private ArrayList textlist;

2017-09-21 19:36:28 166

原创 ViewPager切换图片

public class Fragment2 extends Fragment { private View view; private ViewPager vp; List list = new ArrayList<>(); @Nullable @Override public View onCreateView(LayoutInflater i

2017-09-20 20:22:05 596

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除