- 博客(3)
- 收藏
- 关注
原创 RecyclerView的使用流程
因为RecyclerView是Android5.0版本退出的用来取代ListView的控件。为了兼容5.0之前的Android版本,所以使用之前需要添加依赖库。compile 'com.android.support:recyclerview-v7:21.0.+' 在xml布局文件中引用时使用全类名android:id="@+id/recycler_view"andro
2016-12-09 15:43:47
670
转载 Dagger2的简单使用
使用前的配置在Module级的gradle文件中加入:dependencies:apt 'com.google.dagger:dagger-compiler:2.0'compile 'com.google.dagger:dagger:2.0'provided 'org.glassfish:javax.annotation:10.0-b28'在开头:apply p
2016-10-08 10:18:25
375
转载 Retrofit2.0的简单使用
使用前的配置compile 'com.squareup.retrofit2:retrofit:2.0.2'compile 'com.squareup.retrofit2:converter-gson:2.0.2'1,网络请求接口@GET("list")Call 方法名(@Query("参数名") String 参数名)---Call :是Retrofit提供的类,实体
2016-09-26 13:32:29
312
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人