常用权限
<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"/>
__________________________________
常用依赖
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'
glide
compile 'com.github.bumptech.glide:glide:3.7.0'
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'
recyclerview依赖
compile 'com.android.support:recyclerview-v7:26.0.0-alpha1'
banner
compile 'com.youth.banner:banner:1.4.9'
okhttp3
compile 'com.squareup.okio:okio:1.5.0'
compile 'com.squareup.okhttp3:okhttp:3.2.0'
compile 'com.squareup.okhttp3:logging-interceptor:3.4.1'
xrecyclerview
compile 'com.jcodecraeer:xrecyclerview:1.3.2'
fresco 图片加载框架
compile 'com.facebook.fresco:fresco:1.5.0'
butterknife 黄油刀
compile 'com.jakewharton:butterknife:8.5.1'
annotationProcessor 'com.jakewharton:butterknife-compiler:8.5.1'
eventbus 事件发布/订阅轻量级框架
compile 'org.greenrobot:eventbus:3.0.0'
retrofit2
compile 'com.squareup.retrofit2:retrofit:2.3.0'
compile 'com.squareup.retrofit2:converter-gson:2.3.0'
compile 'com.squareup.retrofit2:adapter-rxjava2:2.3.0'
rxjava2
compile 'io.reactivex.rxjava2:rxandroid:2.0.1'
compile 'io.reactivex.rxjava2:rxjava:2.1.7'
rxjava
compile 'io.reactivex:rxandroid:1.2.1'
compile 'io.reactivex:rxjava:1.1.6'