重构ASupportToolbar自定义控件,支持AES主题切换
- 优化ASupportToolbar控件的绘图流程 - 移除atoolbar_frame.xml依赖,改用Java代码内部绘图 - 添加notifyColorChange()方法绘制三层渐变背景 - 在onAttachedToWindow()时自动调用refreshFromTheme()刷新背景 - 主题切换时通过DrawerFragmentActivity调用refreshFromTheme() - 添加attrs.xml属性:android:background用于自定义style - 添加详细调试日志追踪整个绘制流程 - TestASupportToolbarActivity添加日志便于测试验证 修改文件: - libaes/src/main/java/.../views/ASupportToolbar.java:重构绘图逻辑,添加调试日志 - libaes/src/main/java/.../activitys/DrawerFragmentActivity.java:主题切换时刷新Toolbar - libaes/src/main/java/.../unittests/TestASupportToolbarActivity.java:添加调试日志 - libaes/src/main/res/values/attrs.xml:添加android:background属性 - aes/build.properties:版本号更新 - libaes/build.properties:版本号更新
This commit is contained in:
@@ -43,6 +43,7 @@
|
||||
<attr name="attrASupportToolbarStartColor"/>
|
||||
<attr name="attrASupportToolbarCenterColor"/>
|
||||
<attr name="attrASupportToolbarEndColor"/>
|
||||
<attr name="android:background"/>
|
||||
</declare-styleable>
|
||||
|
||||
<declare-styleable name="AButton">
|
||||
|
||||
Reference in New Issue
Block a user