I have a view on which I would like to place two ListView
s that would have position next to each other depending on the screen orientation. It would look like that:
Horizontal screen orientation:
___________ ___________
| | |
| ListView1 | ListView2 |
|___________|___________|
Vertical screen orientation:
___________
| |
| ListView1 |
|___________|
| |
| ListView2 |
|___________|
From what I have read, I need to use a fragment for each ListView
- can it be done in some other way (i.e. just by using two different XML layout files but the same logic)?