Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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 launched

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Oracle 10g SQL

Authors: Joan Casteel, Lannes Morris Murphy

1st Edition

141883629X, 9781418836290

More Books

Students also viewed these Databases questions

Question

1. Identify the sources for this conflict.

Answered: 1 week ago

Question

3. How would you address the problems that make up the situation?

Answered: 1 week ago

Question

2. What recommendations will you make to the city council?

Answered: 1 week ago