自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(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 266

原创 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 1017

原创 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 1386

原创 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 4330 1

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除