记录常用的三方库和牛b的资料

这篇博客汇总了作者认为优秀的Android开发资源,包括牛逼的个人博客链接、组件化开发教程、反射库、EventBus、Gson、EasyRecyclerView、Glide、MMKV、Logger以及FlexboxLayout等实用三方库。

牛逼的博客

http://weishu.me/page/2/

组件化开发

https://blog.youkuaiyun.com/chenjingsb/article/details/117924562?utm_medium=distribute.pc_category.none-task-blog-hot-1.nonecase&depth_1-utm_source=distribute.pc_category.none-task-blog-hot-1.nonecase

----------------------------------------分割线---------------------------------------------

安卓高版本反射,绕过系统限制的

https://github.com/tiann/FreeReflection

  1. Add dependency to your project(jcenter):
implementation 'me.weishu:free_reflection:3.0.1'
  1. Add one line to your Application.attachBaseContext :
@Override
protected void attachBaseContext(Context base) {
    super.attachBaseContext(base);
    Reflection.unseal(base);
}

Eventbus

implementation 'org.greenrobot:eventbus:3.1.1'

Gson

implementation 'com.google.code.gson:gson:2.8.5'

Easyrecyclerview 提供列表常规产品操作

implementation 'com.jude:easyrecyclerview:4.4.2'

Glide

implementation 'com.github.bumptech.glide:glide:4.11.0'

MMKV

implementation 'com.tencent:mmkv-static:1.2.9'

Logger

implementation 'com.orhanobut:logger:2.2.0'
private void initLogger() {
        CrashHandler crashHandler = CrashHandler.getInstance();
        crashHandler.init(getApplicationContext());
        LogToFile.init(getApplicationContext());

        FormatStrategy formatStrategy = PrettyFormatStrategy.newBuilder()
                .showThreadInfo(false)  // (Optional) Whether to show thread info or not. Default true
                .methodCount(0)         // (Optional) How many method line to show. Default 2
                .methodOffset(7)        // (Optional) Hides internal method calls up to offset. Default 5
//                .logStrategy(customLog) // (Optional) Changes the log strategy to print out. Default LogCat
                .tag(Constant.TAG_JDX_SRS_APP_LIFT_SERVICE_LOGGER)   // (Optional) Global tag for every log. Default PRETTY_LOGGER
                .build();
        Logger.addLogAdapter(new AndroidLogAdapter(formatStrategy) {
            @Override
            public boolean isLoggable(int priority, String tag) {
                return BuildConfig.DEBUG;
            }
        });

        FormatStrategy formatDiskStrategy = CsvFormatStrategy.newBuilder()
                .tag(Constant.TAG_JDX_SRS_APP_LIFT_SERVICE_LOGGER)
                .build();
        Logger.addLogAdapter(new DiskLogAdapter(formatDiskStrategy) {
            @Override
            public boolean isLoggable(int priority, String tag) {
                return BuildConfig.DEBUG;
            }
        });

        CheckLogProcessor.startCheckLogFile();
    }

FlexboxLayout

自动换行的布局 

    implementation 'com.google.android:flexbox:2.0.1'

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值