下面是我的应用程序的截图:
我可以使用R.id.button1访问按钮,并使用 for (Button currentButtoncurrentButton.setBackgroundResource(R.drawable.lightgreen);是否有任何方式访问动作栏及其溢出菜单,以相同的方式设置它们的颜色编辑actnbar.setBackgroundDrawable(R.draw
我相信我需要的东西总会有一个正确的答案,但我找不到: 我需要以编程方式从主题的样式中读取属性...这里有一些简单的代码,让它更容易理解。">@style/StyleElement_CustomTheme</item> <style name="StyleElement_CustomTheme" >But how can I obtain