Using imageButtons to switch activities. How can I switch image in second activity based on button pressed?
问题 I am just starting to dabble with Android development. Right now, I have a program in Android Studio that has two columns of images about 6 images each. I want to make it so if I click that image, it will appear in the new activity. Right now, I am just loading the layout like this: protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); Intent intent = getIntent(); String name = intent.getStringExtra(Main.CHAMPION_NAME); setContentView(R.layout.activity