自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 CentOS7中安装MYSQL5.7数据库

CentOS7中安装MYSQL5.7数据库

2022-07-01 19:02:46 309 2

原创 Android多服务器同时打包多个apk

Android多服务器同时打包多个apkbuild.gradle中配置flavorDimensions "default" productFlavors { lottery_nearlyThree{ // 开发环境: 101.201.152.232 dimension "default" manifestPlacehold...

2018-11-09 15:46:37 645

原创 Android请求接口数据以json串提交

RetrofitUtilspublic class RetrofitUtils { private static RetrofitUtils retrofitUtils=null; private final Retrofit retrofit; public RetrofitUtils() { OkHttpClient.Builder okHt...

2018-08-27 15:22:15 1994

原创 tablayout+viewpage联动

JunshiFragmentpublic class JunshiFragment extends Fragment { @Nullable @Override public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, Bundle savedInstanceSt...

2018-06-01 07:50:21 179

原创 greenDao+自定义搜索框+流式布局

依赖 compile 'org.greenrobot:greendao:3.2.0' compile 'com.fynn.fluidlayout:fluidlayout:1.0'父gradle中添加(对比自己的添加)// Top-level build file where you can add configuration options common to all ...

2018-05-31 20:29:19 346

原创 自定义仿网易云音乐播放界面

清单文件添加 <service android:name="com.rookie.shiyue20180528.model.MusicService" android:enabled="true" android:exported="false" />style.xml...

2018-05-31 19:54:54 5169

原创 在适配器中设置点击事件,接口回调的方法设置点击事件

在适配器中直接给itemView设置点击事件,然后进行条目的操作。@Overridepublic void onBindViewHolder(final GoodsViewHolder holder, final int position) { holder.title.setText(data.get(position).getTitle()); String im...

2018-05-31 19:40:54 2525

原创 retrofit+rxjava+okhttp+拦截器,二级列表购物车,网络删除数据

依赖 compile 'com.jakewharton:butterknife:8.5.1' compile 'com.squareup.okhttp3:okhttp:3.9.0' compile 'org.greenrobot:eventbus:3.0.0' compile 'com.squareup.retrofit2:retrofit:2.4.0' ...

2018-05-31 19:16:46 302

原创 retrofit工具类

utils包Apipublic interface Api { @GET("product/getProducts") Call<GoodsBean> getData(@Query("pscid") String pscid,@Query("page") String page);}OkHttpUtilspublic class OkH...

2018-05-14 07:52:27 252

原创 xrecyclerView分页加载,多条目显示

model包GoodsAdapterpublic class GoodsAdapter extends RecyclerView.Adapter{ public static final int TYPE_ONE_IMAGE = 0; public static final int TYPE_TWO_IMAGE = 1; private Context ...

2018-05-11 07:31:05 1205

原创 电商分类

layout_fl.xml<?xml version="1.0" encoding="utf-8"?><RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layo...

2018-05-03 19:21:55 312

原创 recyclerView多条目加载,点击动画事件

依赖 compile 'com.google.code.gson:gson:2.6.2' compile 'com.squareup.okhttp3:okhttp:3.3.0' compile 'com.github.bumptech.glide:glide:3.7.0' compile 'com.android.support:recyclerview-v7...

2018-05-02 10:54:57 298

原创 s注册登录商品展示

activity_main.xml<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools...

2018-05-02 10:20:31 200

原创 搜索框历史记录,流式布局

public class MyOpenHelper extends SQLiteOpenHelper { public MyOpenHelper(Context context) { super(context, "demo.db", null, 1); } @Override public void onCreate(SQLiteDat...

2018-05-02 09:46:51 740

原创 属性动画的使用

public class SplashActivity extends AppCompatActivity { private int width; private int height; @Override protected void onCreate(Bundle savedInstanceState) { super.onCrea...

2018-04-27 08:26:33 143

原创 mvp模型案例,结合封装OkHttp和recyclerView的使用

SYNavBeanpublic class SYNavBean { /** * msg : * code : 0 * data : [{"cid":1,"createtime":"2017-10-10T19:41:39","icon":"http://120.27.23.105/images/category/shop.png","ishome&quo

2018-04-26 19:10:36 243

原创 OkHttp的封装,get,post,上传文件

OkHttp的封装类public class HttpUtils { private static final String TAG = "HttpUtils-----"; private static HttpUtils httpUtils; private final int SUCCESS = 0; private final int ERROR ...

2018-04-20 09:23:24 546

原创 AsyncTask实现异步网络请求

main主方法public class MainActivity extends AppCompatActivity { private ListView lv; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstan...

2018-04-13 09:31:55 799

原创 MVP实现购物车(二级列表),删除结算功能,拦截器+封装okHttp

图片依赖 compile 'com.squareup.okhttp3:okhttp:3.9.1' compile 'com.google.code.gson:gson:2.8.+' compile 'com.github.bumptech.glide:glide:3.6.1'权限<uses-permission android:name="android.permission.

2018-01-13 15:30:17 708

原创 封装OkHttpUtils使用类,doGet,doPost方法

依赖compile 'com.squareup.okhttp3:okhttp:3.9.1'权限<uses-permission android:name="android.permission.INTERNET"></uses-permission>接口OnFinishListenerpublic interface OnFinishListener { void onFailed(Stri

2018-01-12 20:51:37 4266

原创 mvp实现购物车

依赖compile 'com.squareup.okhttp3:okhttp:3.9.0' compile 'com.google.code.gson:gson:2.8.2' compile 'com.github.bumptech.glide:glide:3.7.0' compile 'com.android.support:recyclerview-v7:26.0.0-alp

2018-01-10 19:04:00 392

原创 接口MVP原生登录注册+搜索+recycleView切换展示

接口MVP原生登录注册+搜索+recycleView切换展示依赖 compile 'com.squareup.okhttp3:okhttp:3.9.1' compile 'com.google.code.gson:gson:2.8.2' compile 'com.android.support:design:26.+' compile 'com.jcodecraeer:x

2018-01-07 20:27:03 6353

空空如也

空空如也

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

TA关注的人

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