需要添加的依赖
来源:互联网 发布:snmp trap协议端口号 编辑:程序博客网 时间:2024/05/29 11:45
compile 'com.squareup.okhttp3:okhttp:3.3.0'
compile 'com.google.code.gson:gson:2.2.4'
compile 'com.github.bumptech.glide:glide:3.8.0'
compile 'com.android.support:design:25.2.0'
//上拉加载下拉刷新框架
compile 'com.chanven.lib:cptr:1.1.0'
//轮播图Banner
compile 'com.youth.banner:banner:1.4.9'
需要导入的依赖导入Retrofit2.0以上包
compile 'com.squareup.retrofit2:retrofit:2.1.0'
该包对gson进行了一次封装使用起来更加方便
compile 'com.squareup.retrofit2:converter-gson:2.1.0'
//为了让PhotoView不用和模拟器,手机冲突
compile 'com.bm.photoview:library:1.4.1'
compile 'com.github.bumptech.glide:glide:3.6.1'
Xml中
<com.bm.library.PhotoView
android:id="@+id/img"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:scaleType="centerInside"
android:src="@mipmap/ic_launcher" />
OrmLite中添加的依赖
compile 'com.j256.ormlite:ormlite-android:4.48'
compile 'com.j256.ormlite:ormlite-core:4.48'
Rxjava1.0
compile 'io.reactivex:rxjava:1.0.14'
compile 'io.reactivex:rxandroid:1.0.1'
Rxjava2.0
compile 'io.reactivex.rxjava2:rxjava:2.0.1'
compile 'io.reactivex.rxjava2:rxandroid:2.0.1'
xrecyclerview(只有下拉刷新,没有上拉刷新)
compile 'com.squareup.picasso:picasso:2.3.2'
compile 'com.google.code.gson:gson:2.2.4'
compile 'com.github.bumptech.glide:glide:3.8.0'
compile 'com.android.support:design:25.2.0'
//上拉加载下拉刷新框架
compile 'com.chanven.lib:cptr:1.1.0'
//轮播图Banner
compile 'com.youth.banner:banner:1.4.9'
需要导入的依赖导入Retrofit2.0以上包
compile 'com.squareup.retrofit2:retrofit:2.1.0'
该包对gson进行了一次封装使用起来更加方便
compile 'com.squareup.retrofit2:converter-gson:2.1.0'
//为了让PhotoView不用和模拟器,手机冲突
compile 'com.bm.photoview:library:1.4.1'
compile 'com.github.bumptech.glide:glide:3.6.1'
Xml中
<com.bm.library.PhotoView
android:id="@+id/img"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:scaleType="centerInside"
android:src="@mipmap/ic_launcher" />
OrmLite中添加的依赖
compile 'com.j256.ormlite:ormlite-android:4.48'
compile 'com.j256.ormlite:ormlite-core:4.48'
Rxjava1.0
compile 'io.reactivex:rxjava:1.0.14'
compile 'io.reactivex:rxandroid:1.0.1'
Rxjava2.0
compile 'io.reactivex.rxjava2:rxjava:2.0.1'
compile 'io.reactivex.rxjava2:rxandroid:2.0.1'
xrecyclerview(只有下拉刷新,没有上拉刷新)
compile 'com.jcodecraeer:xrecyclerview:1.3.2'
xml:
<com.jcodecraeer.xrecyclerview.XRecyclerView
android:id="@+id/xr_test" android:layout_width="match_parent" android:layout_height="wrap_content" android:overScrollMode="never"></com.jcodecraeer.xrecyclerview.XRecyclerView>
Java:xr_test.setLoadingListener(new XRecyclerView.LoadingListener() { @Override public void onRefresh() { Handler handler = new Handler(); handler.postDelayed(new Runnable() { @Override public void run() { refreshData(); //使刷新结束 xr_test.refreshComplete(); } }, 2000); } @Override public void onLoadMore() { loadMoreData(); xr_test.loadMoreComplete(); }});
picasso(同Gilde用法相同)compile 'com.squareup.picasso:picasso:2.3.2'
阅读全文
0 0
- 需要添加的依赖
- DirectX编程属性需要添加的依赖项
- 自定义Panel中添加依赖属性需要注意的问题
- 用Maven创建SSM项目需要添加的依赖
- RecycleView的使用总结(需要在gradle中添加依赖)
- 需要的依赖
- Okhttp 需要的依赖
- butterknife的依赖添加
- 添加的依赖
- 找不到 net.sf.json.JSONObject; ---- jsonObject 需要在 pom 中添加的 maven 依赖
- ssm框架的逆向生成源文件 需要添加mybatis-generator插件依赖
- cxf需要的依赖包
- 网络请求需要的依赖
- androidstudio需要的权限依赖
- 添加sqljdbc的maven依赖
- 添加sqljdbc的maven依赖
- 添加sqljdbc的maven依赖
- 添加sqljdbc的maven依赖
- POJ 2528 Mayor's posters (线段树+离散化)
- JAVA企业面试题精选 Web基础 41-42
- HDU
- 机器学习:AI资源网址链接(大牛,研究机构,视频,博客,书籍,Quora......)
- 计算机的原码, 反码和补码
- 需要添加的依赖
- python之语法
- java并发编程的艺术-并发工具类
- 实现图片上传前本地预览功能之二
- iOS UIImageView自适应图片大小
- 让你彻底明白this的指向问题
- CSS3选择器:nth-child和:nth-of-type之间的差异(转)
- js 事件
- java代码实现发送邮件