通讯录字母匹配索引及位置
https://github.com/youxiaochen/ContactList
ArcSeekBar(圆弧形状拖动条)
https://juejin.im/entry/5b8c7e9bf265da433655a96b
骚年你的屏幕适配方式该升级了!-今日头条适配方案
github地址:https://github.com/JessYanCoding/AndroidAutoSize
掘金地址:https://juejin.im/post/5b7a29736fb9a019d53e7ee2
原理:
比如以分辨率1920px * 1080px来设计,以density为3来标注,也就是屏幕其实是640dp * 360dp
设计图宽为360dp,去适配其它设备
1以宽维度来适配
2那么适配后的 density = 设备真实宽(单位px) / 360,接下来只需要把我们计算好的 density 在系统中修改下即可(application和aicitivity)
ANR检测工具
github地址:https://github.com/markzhai/AndroidPerformanceMonitor
参考:https://blog.csdn.net/swordgirl2011/article/details/52264449
注意:依赖新版的库,旧版的混淆会报错
例如:compile 'com.github.markzhai:blockcanary-android:1.5.0'
Android 进度
github地址:https://github.com/daimajia/NumberProgressBar
改版:Android 垂直进度
注意:需要设置layout_height大于layout_width
例如:
<com.example.firehole.view.NumberProgressBar
style="@style/Progress_Vertical_Custom"
android:id="@+id/numberprogress_bar"
app:progress_reached_bar_height="16dp"
app:progress_unreached_bar_height="5dp"
app:progress_current="50"
app:progress_max="100"
android:layout_width="100dp"
android:layout_height="match_parent"/>
csdn地址:https://blog.csdn.net/guyuelin123/article/details/80028911
基于 zxing 的二维码扫描
博客地址:http://blog.csdn.net/H176Nhx7/article/details/79021267
源码地址:https://github.com/guzhigang001/Zxing/tree/master
源码效果:
实时动态的获取当前界面的包名和类名
源码地址:https://github.com/109021017/android-TopActivity
apk下载地址:http://7xstkb.com1.z0.glb.clouddn.com/TopActivity.apk
一个碉堡的Android工具类合集
开发人员不得不用的工具这里几乎都已经总结。
地址:https://github.com/Blankj/AndroidUtilCode
implementation 'com.blankj:utilcode:1.12.5'
APIs使用说明
https://github.com/Blankj/AndroidUtilCode/blob/master/utilcode/README-CN.md
Android应用使用Multidex突破64K方法数限制
修改模块级builde.gradle文件,修改如下:
dependencies {
compile 'com.android.support:multidex:1.0.2'
}
直接将继承Application
改为继承MultiDexApplication
,而无需修改manifest文件或复写attachBaseContext()
方法。
public class App extends MultiDexApplication {
参考博客地址:https://www.jianshu.com/p/5dd2a7a4e6aa