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

 通讯录字母匹配索引及位置

æ¼é³å¹é

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

 

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值