github安卓项目、库、工具收集

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


猜你喜欢

转载自blog.csdn.net/dianziagen/article/details/79279770
今日推荐