Q9

Question 9

Create an application with 3 buttons horizontally aligned, on selecting a button color of the screen will change.

App Insights:

Twitched the previous vertical layout code and switched the margin pattern and perform same functions as before

Browse Source Code

Code

Output

Studio Screenshot Main Activity (1/8)
App Screenshot Main Activity (2/8)
Studio Screenshot After Pressing Red Button (3/8)
App Screenshot After Pressing Red Button (4/8)
Studio Screenshot After Pressing Blue Button (5/8)
App Screenshot After Pressing Blue Button (6/8)
Studio Screenshot After Pressing Green Button (7/8)
App Screenshot After Pressing Green Button (8/8)

Last updated