- 博客(4)
- 收藏
- 关注
原创 EventBus 框架的使用
开门见山,EventBus框架主要是解耦的作用。它是Android优化发布和订阅事件总线。很好的解决了Intent,Handler以及广播在Activity,Fragment,Service以及线程之间的通信的复杂性。集成很简单:1.添加依赖:(AS3.0以上)implementation 'org.greenrobot:eventbus:3.0.0'2.添加代码:public class Ma...
2018-05-25 13:52:44 279
原创 Android Studio3.0以上多渠道打包遇到的错误
Error:All flavors must now belong to a named flavor dimension。Learn more at https://d.android.com/r/tools/flavorDimensions-missing-error-message.html把Android Studio 升级到3.0.1,gradle4.1的时候出现的报错。查阅了很多资料,...
2018-03-06 16:00:38 1033
原创 Android打包Error:Error: Expected a color resource id (R.color.) but received an RGB integer [ResourceT
由于把android studio升级后出现打包的问题,在思考低版本的为什么没有这样的问题而新的版本出现了这样的问题。该如何解决; Error:Error: Expected a color resource id (R.color.) but received an RGB integer [ResourceType] 在网上解决的办法基本上都是: 在buidle配置中加入
2018-02-07 16:47:09 1398
原创 Android 圆图,正方形图等各种样式的xml的定义
圆形的图片的: shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="oval"> solid android:color="#94C5FF" /> size android:width="20dp" android:height=
2018-02-07 15:04:35 4362 1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人