文章詳情頁
android - 修改這個(gè)顏色怎么修改的
瀏覽:264日期:2024-09-03 15:33:05
問題描述
你們這個(gè)軟件這種顏色是怎么修改的,Android原生默認(rèn)是白色的
問題解答
回答1:這種圓形向外擴(kuò)展的動效來自 Material design,叫做ripple(漣漪)。
要改變它的顏色,一個(gè)簡單的方法是更改 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
相關(guān)文章:
1. docker-compose中volumes的問題2. 關(guān)docker hub上有些鏡像的tag被標(biāo)記““This image has vulnerabilities””3. boot2docker無法啟動4. nignx - docker內(nèi)nginx 80端口被占用5. java - SSH框架中寫分頁時(shí)service層中不能注入分頁類6. javascript - mock.js可以存儲數(shù)據(jù)嗎7. docker安裝后出現(xiàn)Cannot connect to the Docker daemon.8. dockerfile - 為什么docker容器啟動不了?9. node.js - antdesign怎么集合react-redux對input控件進(jìn)行初始化賦值10. docker api 開發(fā)的端口怎么獲取?
排行榜

熱門標(biāo)簽
網(wǎng)公網(wǎng)安備