Question: Android Studio : In order for your application to respond to the click event of a button, you need something that can listen and respond
Android Studio :
In order for your application to respond to the click event of a button, you need something that can listen and respond to when the user clicks the button. In order to do just that, you'll be working with a click listener.
This is where the Java stuff comes into play as you'll be working with the MainActivity.java file.
Submission: Submit a total of 6 files. 5 files named MainActivity.java, strings.xml, activity_main.xml & the 2 resource images that you toggle between. The 6th file being your apk. Zip up the files and title the zip with the following format: lastname, first initial, underscore, assign2 (ie John Doe would submit DoeJ_assign2.zip) Submit the zip file. Supplied Files (Optional): nole.jpg gator.jpg koolgator.jpg Sample Output: Below are the 2 screenshots of the expected output. When you click on the "Show Me A Gator!" button, your view is toggled to the 2nd screen showing the Gator. When you click on the "Show Me A Nole!" button, you are toggled back to the original screen showing a Seminole.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
