I'm trying to decide which is the best/proper way to implement a dynamic horizontal list of icons that will behave similar to the sticker list in Viber android app.There will be a list that will be populated with icons according to a JSON file from RestAPI and when the user will tap on the icon, the panel will slide up and there will be information below according to the pressed icon, maybe a horizontal list of cardviews or something like that. An example of the preferred behavior is here
After some search, i mostly found implementations of tablayout-viewpager solution but after reading this guide and specifically:
Keep the number of scrolling tabs at a manageable level to minimize navigational effort. Rule of thumb: no more than 5–7 tabs.
i am worried about the behavior of the layout with more than 5-7 tabs.A few sources support that tablayout tends to be dysfunctional when many tabs are added and since the icons will not have a fixed number, i am concerned that this will have a performance impact on tablayout.
Which is the most robust way to achieve the behavior as shown in the screens provided?Is there any other way more suitable than tablayout?I don't know how to expand my search on this.Any help will be appreciated.