Home > Enterprise >  How to transfer image from button1 to button2?
How to transfer image from button1 to button2?

Time:12-29

Is possible to give the background image of a button to another button, like we pass values betweeen variable, in Android Studio? I want something like: btn_1.setBackgroundResource = btn_2.setBackgroundResource

CodePudding user response:

button1.setBackground(button2.getBackground());
  • Related