There are two different forms that I receive from the user on one fragment screen
So I've made two DB tables!
A's cursor
First of all, it is possible to use two list views for one fragment.
However, there are a number of issues regarding using two list views, such as scrolling and reusing, so unless it's a special case, the trend these days is to use RecyclerView and use multiple layouts.
Simply put, you can use RecyclerView and different view types to use multiple ViewHolder.
Attached is a link to the post on the Toss Lab blog that made the lawn.
http://tosslab.github.io/android/2016/04/09/MultiItemRecyclerAdapter.html
© 2024 OneMinuteCode. All rights reserved.