文章詳情頁(yè)
android - 修改這個(gè)顏色怎么修改的
瀏覽:162日期:2024-09-03 15:33:05
問(wèn)題描述
你們這個(gè)軟件這種顏色是怎么修改的,Android原生默認(rèn)是白色的
問(wèn)題解答
回答1:這種圓形向外擴(kuò)展的動(dòng)效來(lái)自 Material design,叫做ripple(漣漪)。
要改變它的顏色,一個(gè)簡(jiǎn)單的方法是更改 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 for Mac 創(chuàng)建的dnsmasq容器連不上/不工作的問(wèn)題2. docker安裝后出現(xiàn)Cannot connect to the Docker daemon.3. 關(guān)于Android權(quán)限的獲取問(wèn)題,大家遇到過(guò)這樣的情況嘛?4. javascript - 編程,算法的問(wèn)題5. javascript - 怎么看網(wǎng)站用了什么技術(shù)框架?6. java報(bào)錯(cuò)Communications link failure 該如何解決?7. javascript - 請(qǐng)教空白文本節(jié)點(diǎn)的問(wèn)題8. 刷新頁(yè)面出現(xiàn)彈框9. android - 七牛單次上傳單張圖片,11次6次上傳失敗10. css - 關(guān)于border-image
排行榜

熱門(mén)標(biāo)簽