Answers for "show image when click button android studio"

0

change image on button click android studio

ImageButton btn = (ImageButton)findViewById(R.id.imageButton1);       
 btn.setImageResource(R.drawable.actions_record);
Posted by: Guest on April-23-2020
0

how images button work in android studio

/*Add in Oncreate() funtion after setContentView()*/
ImageButton simpleImageButton = (ImageButton) findViewById(R.id.simpleImageButton);
simpleImageButton.setBackgroundColor(Color.BLACK); //set black background color for image button
Posted by: Guest on December-30-2020

Code answers related to "show image when click button android studio"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language