Files
WinBoLL/libaes/src/main/res/values/attrs.xml
LaizyBoy 632ecc51d8 重构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:版本号更新
2026-05-12 10:53:18 +08:00

77 lines
3.4 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<resources>
<attr name="colorTextColor" format="color" />
<attr name="colorPrimary" format="color" />
<attr name="colorPrimaryDark" format="color" />
<attr name="colorAccent" format="color" />
<attr name="aToolbar" format="reference"/>
<attr name="attrAToolbarTitleTextColor" format="color" />
<attr name="attrAToolbarStartColor" format="color" />
<attr name="attrAToolbarCenterColor" format="color" />
<attr name="attrAToolbarEndColor" format="color" />
<declare-styleable name="AboutView">
<attr name="app_name" format="string" />
<attr name="app_apkfoldername" format="string" />
<attr name="app_apkname" format="string" />
<attr name="app_gitname" format="string" />
<attr name="app_gitowner" format="string" />
<attr name="app_gitappbranch" format="string" />
<attr name="app_gitappsubprojectfolder" format="string" />
<attr name="appdescription" format="string" />
<attr name="appicon" format="reference" />
<attr name="is_adddebugtools" format="boolean" />
</declare-styleable>
<declare-styleable name="AToolbar">
<attr name="attrAToolbarTitleTextColor"/>
<attr name="attrAToolbarStartColor"/>
<attr name="attrAToolbarCenterColor"/>
<attr name="attrAToolbarEndColor"/>
</declare-styleable>
<attr name="aSupportToolbar" format="reference"/>
<attr name="attrASupportToolbarTitleTextColor" format="color" />
<attr name="attrASupportToolbarStartColor" format="color" />
<attr name="attrASupportToolbarCenterColor" format="color" />
<attr name="attrASupportToolbarEndColor" format="color" />
<declare-styleable name="ASupportToolbar">
<attr name="attrASupportToolbarTitleTextColor"/>
<attr name="attrASupportToolbarStartColor"/>
<attr name="attrASupportToolbarCenterColor"/>
<attr name="attrASupportToolbarEndColor"/>
<attr name="android:background"/>
</declare-styleable>
<declare-styleable name="AButton">
<attr name="attrAButtonTextColor" format="color" />
<attr name="attrAButtonPrimary" format="color" />
<attr name="attrAButtonPrimaryDark" format="color" />
<attr name="attrAButtonAccent" format="color" />
</declare-styleable>
<attr name="ActionSheetList" format="reference"/>
<!--<declare-styleable name="AToolbarStyle">
<attr name="attrAToolbarStartColor" format="color" />
<attr name="attrAToolbarCenterColor" format="color" />
<attr name="attrAToolbarEndColor" format="color" />
</declare-styleable>-->
<declare-styleable name="ACard">
<attr name="attrACardBackgroudColor" format="color" />
<attr name="attrACardShadowColor" format="color" />
<attr name="attrACardFrameColor" format="color" />
</declare-styleable>
<declare-styleable name="ATickProgressBar">
<attr name="attrATickProgressBarBackgroudColor" format="color" />
<attr name="attrATickProgressBarProgressColor" format="color" />
</declare-styleable>
<declare-styleable name="OneHundredPercantClickToSendProgressBar">
<attr name="attrOHPCTSBackgroundColor" format="color" />
<attr name="attrOHPCTSSecondaryProgressColor" format="color" />
<attr name="attrOHPCTSProgressColor" format="color" />
</declare-styleable>
</resources>