常用权限
<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’
TabLayout 横向滑动在 gradle中添加依赖
compile'com.android.support:design:26+'
Library依赖
compile 'com.github.userswlwork:pull-to-refresh:1.0.0'
Bannder无限轮播
compile 'com.youth.banner:banner:1.4.9'
RecyclerView的依赖
compile 'com.android.support:recyclerview-v7:26.0.0-alpha1'
OKHTTP权限
compile 'com.squareup.okhttp3:okhttp:3.4.1' compile 'com.squareup.okio:okio:1.5.0' Glide依赖
compile 'com.github.bumptech.glide:glide:3.7.0'
//butterKnife
classpath 'com.jakewharton:butterknife-gradle-plugin:8.4.0'
在project里面配置
build.gradle module里面配置以下两个
apply plugin: 'com.jakewharton.butterknife'
compile 'com.jakewharton:butterknife:8.4.0'
annotationProcessor 'com.jakewharton:butterknife-compiler:8.4.0'
//tablayout权限
compile 'com.android.support:design:26.0.0-alpha1'
ReJava+retrofit依赖
compile 'com.squareup.retrofit2:retrofit:2.0.2'
compile 'com.squareup.retrofit2:converter-gson:2.0.2'
compile 'io.reactivex.rxjava2:rxjava:2.0.1'
compile 'com.squareup.retrofit2:adapter-rxjava2:2.3.0'
compile 'io.reactivex.rxjava2:rxandroid:2.0.1'
//ok拦截日志
compile 'com.squareup.okhttp3:logging-interceptor:3.5.0'
//xrecycleview
compile 'com.jcodecraeer:xrecyclerview:1.3.2'
//xbanner
compile 'com.xhb:xbanner:1.2.2'
//Fresco权限和依赖
compile 'com.facebook.fresco:fresco:1.3.0'
// 支持webp
compile 'com.facebook.fresco:webpsupport:1.3.0'
// gif加载使用
compile 'com.facebook.fresco:animated-gif:1.3.0'
// WebP(静态图+动图)加载使用
compile 'com.facebook.fresco:animated-webp:1.3.0'
//底部导航栏BottomTabBar
compile 'com.hjm:BottomTabBar:1.1.1'