权限:
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/> 判断网络的权限
<uses-permission android:name="android.permission.INTERNET" /> 联网权限
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/> 写SD卡
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/> 读SD卡
依赖:
compile 'com.android.support:design:26+' tabLayout的依赖
compile 'com.google.code.gson:gson:2.8.2' gson的依赖
compile 'com.nostra13.universalimageloader:universal-image-loader:1.9.5' ImageLoader的依赖
compile 'com.android.support:support-v4:23.3.0'
compile 'com.github.userswlwork:pull-to-refresh:1.0.0' pulltoRefresh的依赖
butterknife的依赖:
compile ‘com.jakewharton:butterknife:8.8.1’
annotationProcessor ‘com.jakewharton:butterknife-compiler:8.8.1’