文章详情页
android - 修改这个颜色怎么修改的
浏览:164日期: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. 前端 - ng-view不能加载进模板2. docker容器呢SSH为什么连不通呢?3. android clickablespan获取选中内容4. debian - docker依赖的aufs-tools源码哪里可以找到啊?5. python - from ..xxxx import xxxx到底是什么意思呢?6. angular.js - angularJS在Android WebView中无法正常调后台接口7. 关docker hub上有些镜像的tag被标记““This image has vulnerabilities””8. nignx - docker内nginx 80端口被占用9. docker网络端口映射,没有方便点的操作方法么?10. 请教各位大佬,浏览器点 提交实例为什么没有反应
排行榜
