Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

(Android Studio Assignment) Fragment inside Fragment Create a tab view, which has Tab A and Tab B. Tab A is empty, but Tab B contains

(Android Studio Assignment)

Fragment inside Fragment

Create a tab view, which has Tab A and Tab B. Tab A is empty, but Tab B contains a spinner that has a drop-down function on it. Place a scrollbar inside the dropdown of the spinner. The categories inside the spinner include vegetable, fruit, meat, drink. Clicking on each section will pop up a fragment section below. Here, I clicked on the vegetable section, which leads me to a page displaying vegetables and their expiration dates.

Note: Post XML and Java codes for both the main activity and the fragments. You only need to create the vegetable fragment, I will code the rest based on the vegetable fragment. Do not screenshot/write on paper the code, just copy and paste the code from your Android Studio. Please TEST the code out before posting the XML and Java Codes for both the main activity and the fragments.

Note 2: Do not use your own IMPORTS for this, as I do not understand where these IMPORTS come from. An example of this would be like .adapter.VegRecAdapter, adapter.Vegetable; and, adapter.ViewPagerAdapter;. DO THIS ASSIGNMENT WITHOUT USING ANY SORT OF IMPORTS OF YOUR OWN. MAKE SURE TO POST ALL OF YOUR CODES IF YOUR USING COLOR.xml and STRING.XML as well.

image text in transcribed

image text in transcribed

image text in transcribed

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_2

Step: 3

blur-text-image_3

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

PostgreSQL Up And Running A Practical Guide To The Advanced Open Source Database

Authors: Regina Obe, Leo Hsu

3rd Edition

1491963417, 978-1491963418

More Books

Students also viewed these Databases questions

Question

Why is segmenting a niche market so crucial for a small business?

Answered: 1 week ago

Question

1. Who is responsible for resolving this dilemma?

Answered: 1 week ago