Welcome![Sign In][Sign Up]
Location:
Downloads SourceCode/Document Multimedia program Speech/Voice recognition/combine Applet
Title: ToggleButton Download
 Description: Android demonstration effect of open to turn off the lights, click the button to turn on the light after, click again to turn off the lights, very lifelike demonstrates a turn off the lights and special effects, turn on the light after light light effect is very lifelike.Mainly to add button, change the state of the picture, the status of the setup: public void setBulbState (Boolean state) {/ / true on false off/picture/set state ImageView iv = (ImageView) the findViewById (R.i d.I mageView01);Iv. SetImageResource ((state)?R.d rawable. Bulb_on: R.d rawable. Bulb_off);/ / set the picture / / set the ToggleButton state ToggleButton TB = (ToggleButton) this. The findViewById (R.i which oggleButton01);TB. SetChecked (state);/ / set the ToggleButton state
 To Search:
File list (Click to check if it's the file you need, and recomment it at the bottom):
文件名大小更新时间
codesc.net\ToggleButton\.classpath 280 2010-03-28
codesc.net\ToggleButton\.project 846 2010-03-28
codesc.net\ToggleButton\AndroidManifest.xml 629 2010-03-28
codesc.net\ToggleButton\default.properties 449 2010-03-28
codesc.net\ToggleButton\gen\wyf\jc\R.java 1053 2010-03-28
codesc.net\ToggleButton\res\drawable-hdpi\icon.png 4147 2010-03-28
codesc.net\ToggleButton\res\drawable-ldpi\icon.png 1723 2010-03-28
codesc.net\ToggleButton\res\drawable-mdpi\bulb_off.png 25485 2010-03-26
codesc.net\ToggleButton\res\drawable-mdpi\bulb_on.png 43430 2010-03-26
codesc.net\ToggleButton\res\drawable-mdpi\icon.png 2574 2010-03-28
codesc.net\ToggleButton\res\layout\main.xml 823 2010-03-28
codesc.net\ToggleButton\res\values\strings.xml 339 2010-03-28
codesc.net\ToggleButton\src\wyf\jc\Sample_4_5.java 1361 2018-09-16
codesc.net\ToggleButton\gen\wyf\jc 0 2018-09-16
codesc.net\ToggleButton\src\wyf\jc 0 2018-09-16
codesc.net\ToggleButton\gen\wyf 0 2018-09-16
codesc.net\ToggleButton\res\drawable-hdpi 0 2018-09-16
codesc.net\ToggleButton\res\drawable-ldpi 0 2018-09-16
codesc.net\ToggleButton\res\drawable-mdpi 0 2018-09-16
codesc.net\ToggleButton\res\layout 0 2018-09-16
codesc.net\ToggleButton\res\values 0 2018-09-16
codesc.net\ToggleButton\src\wyf 0 2018-09-16
codesc.net\ToggleButton\assets 0 2018-08-26
codesc.net\ToggleButton\gen 0 2018-09-16
codesc.net\ToggleButton\res 0 2018-09-16
codesc.net\ToggleButton\src 0 2018-09-16
codesc.net\ToggleButton 0 2018-09-16
codesc.net 0 2018-09-16

CodeBus www.codebus.net