0

I want to make tab dynamic which will look like below image.

enter image description here

If press inn quiz1 then start quiz activity. and then when I press Quiz-Results then start that activity.

Michael Yaworski
  • 13,410
  • 19
  • 69
  • 97

1 Answers1

1
  1. Within a layout create a horizontal list view to hold the top bar and below that create one Frame layout and use fragments to replace in that views.
  2. Use fragment activity to handle this layout
  3. and dynamically add items to that list view and set Tag(something) to mention which task it has to be performed when clicked.
  4. and based on the tag open respective fragment in that frame layout.
Tamilselvan Kalimuthu
  • 1,534
  • 1
  • 13
  • 28