Android 开发中个人常用工具类整理,慢慢增加中..
compile 'com.bobomee.android:common:1.4.9'- BaseApplication:
自定义Application需要继承的类
- ObservableManager:
方便Activity与Fragment通信的类
参考:
- UIUtil:
方便UI操作的工具类,getString(int resId),inflate(resId) ...
- WebViewUtil:
WebView重定向判断,HTTP/HTTPS混合使用,WebView文件下载,WebView硬件加速方案
参考:
- IMMLeaks:
InputMethodManager内存泄漏
....
- BackHandledFragment:
Fragment优雅的监听 back 事件
参考: 两步搞定Fragment的返回键
- CommonAdapter
Thanks to tianzhijiexian/CommonAdapter
- Utils
Build.VERSION_CODES :such as hasHoneycomb,hasIceCreamSandwich... InputMethodManager : hide and show ViewFindUtils: ViewUtil
- ScreenUtil: 截屏,包括 Listview,ScrollView,RecyclerView 使用 Demo: ScreenShotActivity.java