常用权限
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
- 1
- 2
- 3
- 4
- 5
常用依赖
butterknife
compile ‘com.jakewharton:butterknife:8.8.1’
annotationProcessor ‘com.jakewharton:butterknife-compiler:8.8.1’
imageloader
compile ‘com.nostra13.universalimageloader:universal-image-loader:1.9.5’
TabLayout—design包导入
compile ‘com.android.support:design:26+’
gson包导入
compile 'com.google.code.gson:gson:2.2.4'
pull-to-refresh上下拉刷新控件
compile ‘com.github.userswlwork:pull-to-refresh:1.0.0’
banner 无限轮播
compile 'com.youth.banner:banner:1.4.10'
compile 'com.android.support:support-v4:23.3.0'
compile 'com.squareup.okio:okio:1.5.0'
//XRecyclerView架构
compile 'com.jcodecraeer:xrecyclerview:1.5.8'
//第三放的倒计时
compile 'com.github.iwgang:countdownview:1.2'
//Eventbus
compile 'org.greenrobot:eventbus:3.1.1'
//Butterknife
compile'com.jakewharton:butterknife:8.8.1'
annotationProcessor'com.jakewharton:butterknife-compiler:8.8.1'
//Retrofit
compile 'com.squareup.retrofit2:converter-gson:2.3.0'
compile 'com.squareup.retrofit2:adapter-rxjava2:2.3.0'
//xBanner
compile 'com.xhb:xbanner:1.2.9' compile 'jp.wasabeef:glide-transformations:1.0.6'
//Frescon
compile 'io.reactivex.rxjava2:rxandroid:2.0.1'
//日志拦截器
compile 'com.squareup.okhttp3:logging-interceptor:3.5.0'
//BottomTabBar
compile 'com.hjm:BottomTabBar:1.1.1'
//多图上传依赖
implementation 'com.github.LuckSiege.PictureSelector:picture_library:v2.2.3'