title | type | duration | creator | ||||
---|---|---|---|---|---|---|---|
Experiment With a Simple App |
Lab |
1:20 |
|
In this lab, we will be focusing on creating a simple app. You will practice how to add and modify basic views in an XML layout. Also, using Java, you will practice how to modify views and how to make a view react to a user's click.
- Add three buttons, with the texts "Blue", "Magenta", and "Gray".
- When the buttons are clicked, have each button set the TextView color to the corresponding color.
Bonus: Change the background of the text in addition to changing the text's color.
No starter code is provided.
A working Android app that meets the requirements above.
Take a look at what your screen should look like upon clicking "Blue":
- All content is licensed under a CCBYNCSA 4.0 license.
- All software code is licensed under GNU GPLv3. For commercial use or alternative licensing, please contact [email protected].