文章詳情頁
android - 修改這個顏色怎么修改的
瀏覽:167日期: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. python - scrapy url去重2. Python從URL中提取域名3. node.js - 微信小程序websocket連接問題4. python執(zhí)行cmd命令,怎么讓他執(zhí)行類似Ctrl+C效果將其結束命令?5. 實現(xiàn)bing搜索工具urlAPI提交6. Python中使用超長的List導致內(nèi)存占用過大7. python - Django有哪些成功項目?8. MySQL主鍵沖突時的更新操作和替換操作在功能上有什么差別(如圖)9. 數(shù)據(jù)庫 - Mysql的存儲過程真的是個坑!求助下面的存儲過程哪里錯啦,實在是找不到哪里的問題了。10. 鏈接圖片時,鏈接不成功
排行榜

熱門標簽