Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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 Section 1 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. P 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 il 4. Commit your project to GitHub. ILLUSTRATION: 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 with AI-Powered 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

Students also viewed these Databases questions

Question

3 > O Actual direct-labour hours Standard direct-labour hours...

Answered: 1 week ago