文章详情页
android - 修改这个颜色怎么修改的
浏览:319日期: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. react-native 启动Android项目失败2. python - 用ffmpeg采集视频,用terminate没法结束进程3. nginx - 关于vue项目部署到ngnix后出现的问题4. node.js - nodejs+express+vue5. node.js - vue-resource,如何改变响应格式?6. css - 关于HTML中width和height的疑问(这个提问的标题不好起)7. javascript - 手机点击input时,button会被顶上去?求解决!!!8. html - css导航栏模糊,导航栏固定,随着页面滑动对下方页面产生模糊效果,如何实现?9. linux - python 安装 Anaconda 环境变量问题请教10. 网站在移动的环境下手机,pc打不开
排行榜

网公网安备