Question: write a simple application that has two fragments, Fragment A , and Fragment B . When the user clicks on a button, it presents Fragment
write a simple application that has two fragments, Fragment A, and Fragment B. When the user clicks on a button, it presents Fragment A with a yellow background, and when she clicks the other button, it presents Fragment B with a blue background as shown in the figure below.
USING ANDROID STUDIO, please provide Fragment A xml code, Fragment B xml code activity_main xml code and MainActivity java code

Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
