Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我的应用程序中有一个 BottomBar。我想更改其项目选择器的颜色。那是当它被点击项目来改变它的颜色!默认情况下,colorPrimary 已默认设置为此。我应该怎么做才能改变它的颜色?
我认为这可以帮助你改变颜色
// Pass on the activity and color resourse Utils.darkenStatusBar(this, R.color.orange);
我不测试代码,但也许如果你把它放在 clic 里面你可以改变它
参考