0

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.

2
  • Certainly there are views that can implement such layout but first can you explain in detail the behaviour you want to achieve in the said layout. thanks. Commented Feb 28, 2024 at 17:50
  • @SyedAtifAli Details are added Commented Feb 29, 2024 at 13:37

1 Answer 1

0

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.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.