如何将图像从 button1 传输到 button2?

How to transfer image from button1 to button2?

是否可以将一个按钮的背景图像提供给另一个按钮,就像我们在 Android Studio 中传递变量之间的值一样? 我想要这样的东西: btn_1.setBackgroundResource = btn_2.setBackgroundResource

button1.setBackground(button2.getBackground());