Android component to impelent a listview with tabbed headers

26 views Asked by At

Is there any standard Android material view that is the best fit for the implementation of such a layout?

enter image description here

In this layout, I mean to have a tab group on top when one of them is touched/clicked then the related list can be shown on the list below.

It is some sort of implementation for a list with two levels of items. The headings are on top and sub-headings are at the bottom ListView.

Both lists (tabs on top, and list items on bottom) are dynamically populated and their number is not fixed.

1

There are 1 answers

0
Navi_Here On

You can use tablayout with viewpager and fragments There are plenty of resources are available you can look into this as well. In fragments set your list according to your use case. i.e., if you setting them statically then put directly in fragments. or if you are getting through api then use viewmodel and set them dynamically.