i have viewmodel supports 3 lists user needs see 1 @ time.
in ios use segmented control switch visibility. control should using in android. tabs? tabs seem way of switching 1 view whereas want set showtablex or showtabley properties on viewmodel.
fwiw sample of kind of ui talking about
there several ways tackle this. have viewpager , tablayout (from support design package) , switch between pages in viewpager.
if don't want use viewpager , toggle visibility on layouts, can use tablayout without viewpager , add tabs , listen tabselected event gives , toggle visibility based on tab selected.
Comments
Post a Comment