Kevin
02/25/2021, 8:42 AMinclude
or recyclerView
?
this is probably will be long, but i'll try to keep it simple. so i have a layout, where in that layout there is 3 sub-menu clickable tab. the 3 sub-menu tab has about 90% same UI, where it's difference only on the icon image and title text. because i'm originally will use recyclerView
, i had create the sub-menu UI on different xml file.
i was thinking to use recyclerView
and set the itemCount
to 3, and then set each item UI differences(icon & text) programatically. but in that moment, i got a thought what if i create the whole 3 sub-menu tab on that separate xml file and then called the sub-menu tab file on main layout by using include
.
because of this, i'm quite confused, on which is recommended to use for a better approach on making layout UI? thank youRuckus
02/25/2021, 3:22 PM