牛逼的博客
http://weishu.me/page/2/
组件化开发
----------------------------------------分割线---------------------------------------------
安卓高版本反射,绕过系统限制的
https://github.com/tiann/FreeReflection
- Add dependency to your project(jcenter):
implementation 'me.weishu:free_reflection:3.0.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'
这篇博客汇总了作者认为优秀的Android开发资源,包括牛逼的个人博客链接、组件化开发教程、反射库、EventBus、Gson、EasyRecyclerView、Glide、MMKV、Logger以及FlexboxLayout等实用三方库。
1783

被折叠的 条评论
为什么被折叠?



