hi all, would like to ask for some suggestion on w...
# announcements
k
hi all, would like to ask for some suggestion on which is a better approach, to use
include
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 you
stackoverflow 2
r
This sounds like an Android design question and not a Kotlin question. You'd be better asking on a platform like StackOverflow.