Answered step by step
Verified Expert Solution
Question
1 Approved Answer
In Android studio Instructions: Refactor the last lab that you worked on to create a 2-activity application along with a custom adapter. Your application will
In Android studio
Instructions: Refactor the last lab that you worked on to create a 2-activity application along with a custom adapter. Your application will allow a user to select a color from a Spinner on one activity, and once selected, launch the second activity and set the background of the new activity's layout to the selected color. Once completed, you will add an icon to your application and generate a signed APK that is ready to be distributed Section1 1. Create a new project with 2 activities - PaletteActivity (your Main), and CanvasActivity (your secondary activity). Each activity should have a unique title/label (see illustration below) 2. PaletteActivity must contain a Spinner that will use a custom adapter to present to the user a set of color options. The views generated by the custom adapter should be simple TextViews, where the text value is the name of the color, and the background of the text view should be the color specified by the name. Your spinner and adapter should function exactly the same as your previous assignment. 3. When a user selects a color from the Adapter View, the second activity should be launched and this new activity's layout background should be set to the selected color (see illustration below) 4. Commit your project to GitHub ILLUSTRATION 12:02 11:5 Palette Activity Canvas Activity After selection, new Activity is launchedStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started