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.
是否可以获取 ActionBar 的颜色?
我想根据我正在查看的内容(如 Google Play)更改操作栏的颜色。我需要在至少 8 种不同的颜色之间切换,如果可能的话,我宁愿不必手动跟踪颜色。
谢谢
为什么你需要实际获得颜色?我的意思是,如果您以任何一种方式进行设置,是否将颜色设置为实际颜色都没有关系,不是吗?您应该只需要 actionBar 的当前部分和要更改的颜色,我错了吗?