TakePhoto
https://github.com/crazycodeboy/TakePhoto
种的一个问题自定义UI
自定义状态栏 修改颜色后,如果选择图片就会还原原始的颜色,
后发现图片选择框架使用的MultipleImageSelect
https://github.com/darsh2/MultipleImageSelect
找到最原版的修改方案
Custom Styles
- To change the color of UI elements, in colors.xml file, override the following attributes with the desired colors. Example:
<color name="multiple_image_select_primary">#673AB7</color>
<color name="multiple_image_select_primaryDark">#512DA8</color>
<color name="multiple_image_select_primaryLight">#D1C4E9</color>
<color name="multiple_image_select_accent">#536DFE</color>
<color name="multiple_image_select_primaryText">#212121</color>
<color name="multiple_image_select_secondaryText">#727272</color>
<color name="multiple_image_select_divider">#B6B6B6</color>
<color name="multiple_image_select_toolbarPrimaryText">#FFFFFF</color>
<color name="multiple_image_select_albumTextBackground">#99FFFFFF</color>
<color name="multiple_image_select_imageSelectBackground">#000000</color>
本文探讨了在使用TakePhoto库时遇到的自定义状态栏颜色还原问题,原因是其依赖了MultipleImageSelect框架。通过研究源码,找到了原版的修改方案,介绍了如何在colors.xml文件中自定义UI元素颜色,以实现界面风格的个性化定制。
1723

被折叠的 条评论
为什么被折叠?



