Skip to content

Tag: android-studio

Fragment display different content

Can I make a Fragment to display different content depending on what was selected in the previous screen. For example: I create Fragment with ImageView and TextView. In MainActivity I click Button1 and the Fragment opens and shows some content, and if I click Button2 the same Fragment opens but different cont…