I'm trying to learn more about RecyclerView and its implementations, so in this case I need to to design tow item views, one will show when LayoutManager is LinearLayoutManager which in this case will show a vertical List of cards, the second item design will be used when changing LayoutManager to GridLayoutManager type.
my question is how to implement such logic?
I read some answers here, like this about Recyclerview with multiple row design but found nothing about switching between LayoutManager types. and according to this talk we shouldn't play with layout manager in Adapter.
finally I have to mention that I'm new to Android development so I hope my question is clear, and I appreciate any help.