Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * Toggle switch button images
- * changing image states to on / off
- * */
- private void toggleButtonImage(){
- if(isFlashOn){
- btnSwitch.setImageResource(R.drawable.btn_switch_on);
- }else{
- btnSwitch.setImageResource(R.drawable.btn_switch_off);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement