文章详情页
android - 修改这个颜色怎么修改的
浏览:262日期:2024-09-03 15:33:05
问题描述
你们这个软件这种颜色是怎么修改的,Android原生默认是白色的
问题解答
回答1:这种圆形向外扩展的动效来自 Material design,叫做ripple(涟漪)。
要改变它的颜色,一个简单的方法是更改 style:
<style name='AppTheme' parent='Theme.AppCompat.Light.DarkActionBar'> ... <item name='colorControlHighlight'>@color/ripple_material_dark</item> ...</style>
另外你也可以参考这些 SO 的回答:
What should be the color of the Ripple, colorPrimary or colorAccent?
How to change the ripple color of the DrawerToggle (back arrow)
Changing color of Ripple Effect
相关文章:
1. 修改mysql配置文件的默认字符集重启后依然不生效2. 请问一下各位老鸟 我一直在学习独孤九贱 现在是在tp5 今天发现 这个系列视频没有实战3. Python两个list互换,两种不同的操作结果有差异,原因是什么呢?4. php - 类似Apple官网顶部3级导航该如何设计数据库?5. mongodb - windows7下mongod无法正常启动6. angular.js - 关于指令link 中的创建变量问题7. javascript - ueditor引入报错问题8. mysql - 请教一个Java做数据库缓存的问题9. 关docker hub上有些镜像的tag被标记““This image has vulnerabilities””10. python sqlite3 长语句插入出错
排行榜

网公网安备