文章詳情頁
android - 修改這個顏色怎么修改的
瀏覽:177日期: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. php - 一個操作請求多個服務如何保證數據的安全?2. mysql - eclispe無法打開數據庫連接3. javascript - 在 model里定義的 引用表模型時,model為undefined。4. css3 - 沒明白盒子的height隨width的變化這段css是怎樣實現的?5. javascript - 一個關于客戶端和前端通信的疑惑?6. javascript - webpack熱加載配置不生效7. 關于Java引用傳遞的一個困惑?8. java - 根據月份查詢多個表里的內容怎么實現好?9. mysql表中索引重復的問題?10. css3 - 這個右下角折角用css怎么畫出來?
排行榜
