- 博客(8)
- 收藏
- 关注
转载 EventBus混淆需要注意的地方
-keepattributes *Annotation* -keepclassmembers class ** { @org.greenrobot.eventbus.Subscribe <methods>; } -keep enum org.greenrobot.event...
2017-08-08 17:58:00 164
转载 DataBinding使用中在xml使用include的一些注意的地方
在父xml里引用include布局 <include layout="@layout/item_news_task_title" app:user="@{NewsBean.user}"/> 其中 app <layout xmlns:android="ht...
2017-08-07 15:38:00 1419
转载 warning :uninstalling will remove the application data!
手机上明明没有安装软件,但是as仍旧提示卸载原软件 file-settings-搜索instant run,然后都取消,点击apply就可以正常发布到手机了。估计是Androidstudio 的instant run 的bug,把instant run 选项去掉,编译安装就成功了。 ...
2017-04-19 09:15:00 101
转载 You need to use a Theme.AppCompat theme (or descendant)
Caused by: java.lang.IllegalStateException: You need to use a Theme.AppCompat theme (or descendant) with this activity. 让你的activity继承A ...
2017-03-27 11:19:00 68
转载 android 6.0 7.0 权限如何添加问题简要概述如何解决
/**在build.gradle添加jar*/ compile 'com.yanzhenjie:permission:1.0.3' /**在activity或者fragment等任何需要获取权限时调用*/ /**查询SD卡读取权限权限*/ AndPermission.with(this) ...
2016-12-30 11:50:00 119
转载 Error:No service of type Factory<LoggingManagerInternal> available in ProjectScopeServices.
buildscript { repositories { jcenter() } dependencies { classpath 'com.android.tools.build:gradle:2.1.3' c...
2016-12-29 11:43:00 69
转载 ImageLoader 内存溢出OOM 手动清理缓存
在使用imageloader的过程中如果一个activity里面有较多图片加载,当我们来回切换这个activity时,就会造成内存溢出。在网上查了一点资料,根据别人解析的源码发现 当activity finish时,持有的bitmap没有被释放掉,所以来回多次切换这个activity就会造成内...
2016-11-28 10:36:00 212
转载 Android解耦合利器-DataBinding
先码上。。。以后慢慢写 2015年谷歌 I/O大会上介绍了一个非常厉害的新框架DataBinding, 数据绑定框架给我们带来了很大的方便,以前我们可能需要在每个Activity里写很多的findViewById,不仅麻烦,还增加了代码的耦合性,如果我们使用DataBinding,就可以抛弃...
2016-10-14 12:51:00 79
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人