android - Application design help -
i want create sports application contains following.
- tabhost 3 main categories. (news, tables, live score)
- the news category have 2 sub categories. (team news, league news)
- tables have 3 sub categories. (table, stats, schedule)
- live score listactivity.
how should design this? should main categories separate activities? should sub categories activities or views?
if sub categories views guess have keep track of view current update/display proper information.
also how switch between views? lets want go view 1 3? using viewflipper can go next 1 step @ time.
thanks!
should main categories separate activities?
no, since on screen @ 1 time (single tabhost). @ most, 4 activities: 1 tabhost
, 1 each tab, on record opposing use of activities contents of tabs.
should sub categories activities or views?
it impossible make them activities.
if sub categories views guess have keep track of view current update/display proper information.
when data changes, update affected views.
also how switch between views? lets want go view 1 3? using viewflipper can go next 1 step @ time.
no, can call setdisplayedchild()
jump child of viewflipper
wish.
Comments
Post a Comment