文章詳情頁
android - 修改這個顏色怎么修改的
瀏覽:130日期: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. macos - mac下docker如何設置代理2. java - 請問在main方法中寫成對象名.屬性()并賦值,與直接參參數賦值輸錯誤是什么原因?3. MySQL數據庫中文亂碼的原因4. 關docker hub上有些鏡像的tag被標記““This image has vulnerabilities””5. docker不顯示端口映射呢?6. docker - 各位電腦上有多少個容器啊?容器一多,自己都搞混了,咋辦呢?7. android studio總是在processes running好久8. angular.js - 關于$apply()9. docker-compose 為何找不到配置文件?10. dockerfile - 我用docker build的時候出現下邊問題 麻煩幫我看一下
排行榜
