BackgroundLibrary
项目地址:JavaNoober/BackgroundLibrary
简介:A framework for directly generating shape through Tags, no need to write shape.xml again(通过标签直接生成 shape,无需再写 shape.xml)
标签:
A framework for directly generating shape through Tags, no need to write shape.xml again(通过标签直接生成 shape,无需再写 shape.xml)
依赖方式:
implementation "com.android.support:appcompat-v7:$supportVersion"
implementation 'com.noober.background:core:1.3.7'
版本更新:
1.0.5 解决 android 8 以下 Fragment 中 view 显示问题,解决水波纹不能与 press 事件共存问题,优化水波纹显示
1.2.0 增加对 selector 的支持
1.2.2 修复部分属性不生效的 bug
1.2.3 checkbox radiobutton 使用的 bug
1.2.4 新增了 text 不同状态变色的支持
1.2.5 去除 kotlin 依赖
1.2.6 修复调用其他换肤框架可能失效的问题
1.2.7 新增 pressed_stroke_color 等边框的属性
1.3.0 提供通过代码生成 Drawable 的方法;为了防止属性冲突,所有属性以 bl_ 开头
1.3.1 优化代码,减少内存占用
1.3.2 修复与其他框架冲突的 bug
1.3.3 修复通过代码创建 drawable,白色失效的问题
1.3.4 支持最小 sdk 从 16 变为 14,如果 minSdkVersion < 16:bl_gradient_angle, bl_gradient_startColor, bl_gradient_centerColor, bl_gradient_endColor 会失效,其他正常
1.3.5 新增属性 bl_checked_button_drawable 与 bl_unChecked_button_drawable,在 checkBox 与 radiobutton 中使用了 bl_checked_drawable 与 bl_unChecked_drawable 会与之前版本有区别,
bl_checked_button_drawable 相当于 setButtonDrawable,而 bl_checked_drawable 相当于 setBackground,详见 demo 的 radiobutton 写法
1.3.6 修复 bug
1.3.7 新增属性,使用详见[例子 4](#jump1)