文章詳情頁
android - 修改這個顏色怎么修改的
瀏覽:140日期: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. atom開始輸入!然后按tab只有空格出現沒有html格式出現2. javascript - vue 2.0 :key的作用3. java - 創建maven項目失敗了 求解決方法4. javascript - ie11以下單擊打開不了file,雙擊可以。求解?5. mac里的docker如何命令行開啟呢?6. python - 數據無法插入到mysql表里7. PHP類屬性聲明?8. mysql scripts提示 /usr/bin/perl: bad interpreter9. php - MySQL數據庫設計,獲取點贊的人數10. MYSQL 根據兩個字段值查詢 但兩個值的位置可能是互換的,這個怎么查?
排行榜
