Question
Create application using RecyclerView similar to the picture Tasks: I. Add an additional Button inside the Card displaying different names on each card II. If
Create application using RecyclerView similar to the picture
Tasks:
I. Add an additional Button inside the Card displaying different names on each card
II. If you want to show only the first two Card elements, without deleting the third element, which part of the java code do you need to modify? Highlight the modified java code part.
III. Replace existing pictures of the Cards with other images of your choice.
IV. If you want to open a new activity after pressing the Lobelia card (not button or text), which part of the code do you need to modify? Highlight the modified java code part.
V. If you want to change the colour of each TextView element after pressing the corresponding Button, which part of the code do you need to modify? Highlight the modified java code part.
VI. Now edit the code such that the Button's text is set as Black (or vice versa) to show the equivalent colour that the text will acquire when the Button is pressed. What occurs when you touch the Button on each Card is shown in detail in picture illustrates what happens, for instance, when you click the Button on the second card once again. Highlight the modified java code part.
Fig.1: Initial UI Fig. 2: After adding button Fig. 3: Displaying only the first two elements Fig. 4: Text Color Changes Fig. 5: Text Color and Button Text changes Fig. 6: Color changes accordingly
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