Question
(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.
Step 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