阅读背景:

使用切换按钮启动和停止菜单项

来源:互联网 

This is the code inside of my MainActivity.java: I am trying to use a toggle button to toggle a menu item to be on and off. The menu item when checked sets the background to red. When the item is not selected the background color is default. I am new to java so I am unsure what to put in the if and else statement under This is the code inside of my MainActivity.java




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: