I am developing a food order application.I am having a page to display menus in a particular hotel in a recyclerview.Please see the image below to understand my question.Hotels have menus like bestsellers,soups,maincourse,starters etc...Some hotels have 5 menus ,some hotels have 8 menus etc.Menus will vary depends on hotels.so how can i design my layout for that.I need to have the menu title at the top of each layout and submenu items below that.Is it needs to done on layout side or api response side.picture1picture2
Asked
Active
Viewed 32 times
1 Answers
0
RecyclerView supports multiple ViewTypes, so you can create multiple ViewHolders, each on with a different layout.
https://medium.com/@paulnunezm/working-with-recyclerview-and-multiple-view-types-bb1e7dfc6993

Jean Pimentel
- 419
- 5
- 10