常用权限
监听EditText发生改变
http://blog.sina.com.cn/s/blog_89429f6d0101alcp.html
自定义输入框
http://doc.okbase.net/lgx06/archive/120558.html
断点续传
http://blog.youkuaiyun.com/wzgiceman/article/details/52910373
自定义输入框
http://blog.youkuaiyun.com/xiaanming/article/details/11066685
自定义加减
http://blog.youkuaiyun.com/whitley_gong/article/details/51956429
http://blog.youkuaiyun.com/inter_native/article/details/78603256
接口可用:http://live.9158.com/Room/GetHotLive_v2?lon=0.0&province=&lat=0.0&page=1&type=1home.firefoxchina.cn
接口不可用:http://route.showapi.com/197-1/?showapi_appid=18107&showapi_sign=9a973b7a357e4475b150af31da58be1e&num=60(尽量不要用)
创建Json串https://www.eolinker.com/#/home/project/api/
阿里巴巴小图标图片http://www.iconfont.cn/
二维码生成与扫描http://blog.youkuaiyun.com/bo543937071/article/details/53784204
https://github.com/yipianfengye/android-zxingLibrary
<uses-permissionandroid:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
常用依赖
Okhttp的依赖:compile 'com.squareup.okhttp3:okhttp:3.9.0' 解析Gson的依赖:compile 'com.google.code.gson:gson:2.8.2'
Banner的依赖:compile 'com.youth.banner:banner:1.4.9'
底部标签compile'com.hjm:BottomTabBar:1.1.1'
ImageView图片展示compile'com.nostra13.universalimageloader:universal-image-loader:1.9.5'
可以实现瀑布,线性,网格布局compile'com.android.support:recyclerview-v7:26.0.0-alpha1'
有上边的效果加上下拉刷新,上拉加载Xrecyclerview
compile'com.jcodecraeer:xrecyclerview:1.2.0'
//retrofit依赖网络请求
compile 'com.squareup.retrofit2:retrofit:+' compile 'com.squareup.retrofit2:converter-gson:+' compile 'io.reactivex.rxjava2:rxjava:+' compile 'io.reactivex.rxjava2:rxandroid:+' compile 'com.squareup.retrofit2:adapter-rxjava2:+'
自动轮播compile'com.youth.banner:banner:1.4.9'
Okhttp拦截器借口compile'com.squareup.okhttp3:logging-interceptor:3.4.1'
//butterkbife获取id的依赖
compile 'com.jakewharton:butterknife:7.0.0'
注:使用时需要配合file--》settings--》Plugins--》点击下方三个按钮的中
间那个下载--》Android ButterKnife Zelezny
//二维码依赖
compile 'cn.yipianfengye.android:zxing-library:2.1'
//EventButs传值依赖
compile 'org.greenrobot:eventbus:3.0.0'
//fresco图片展示框架
compile 'com.facebook.fresco:fresco:1.5.0'
//节操视频播放依赖
compile 'fm.jiecao:jiecaovideoplayer:5.5.2'
// IjkPlayer视频播放
repositories { mavenCentral() flatDir { dirs 'libs' /**在libs文件夹下找aar文件*/ maven { url "https://jitpack.io" } } } https://www.cnblogs.com/zhujiabin/p/6223989.html
//http://blog.youkuaiyun.com/xcjean/article/details/78613066
String url = Environment.getExternalStorageDirectory() .getAbsolutePath() + "/local2/adc.mp4"; new PlayerView(this) .setTitle("什么") .setScaleType(PlayStateParams.fitparent) .hideMenu(true) .forbidTouch(false) .setPlaySource(url) .startPlay();
可以填加支持HTTPS协议的网络视频so包
https://blog.youkuaiyun.com/linchaolong/article/details/52805666
compile 'com.dou361.ijkplayer:jjdxm-ijkplayer:1.0.5'
Uri mUri = Uri.parse("http://ips.ifeng.com/video19.ifeng.com/video09/2014/06/16/1989823-102-086-0009.mp4"); videoView.init() .setVideoPath(mUri) .setMediaQuality(IjkPlayerView.MEDIA_QUALITY_HIGH) .enableDanmaku() .start();
Glide依赖compile'com.github.bumptech.glide:glide:4.0.0'
Retrofit依赖
//retrofit
compile'com.squareup.retrofit2:retrofit:+'
compile'com.squareup.retrofit2:converter-gson:+'
//Rxjava2
compile'io.reactivex.rxjava2:rxjava:+'
compile'io.reactivex.rxjava2:rxandroid:+'
//让retrofit支持Rxjava2
compile 'com.squareup.retrofit2:adapter-rxjava2:+'
沉浸式(俗称;去标题头)
https://www.aliyun.com/jiaocheng/23905.html
把这行换成这个