Android ListView Navigation -
i want display categories-subcategories using list view (sort of breadcrumb menu). don't know start?
here requirement
the first screen should show list of categories. when user click(touch) 1 of items, should show user sub-category menu. again when user click(touch) on of sub categories item, should show subcategories view.
the sub categories hierarchy not fixed. e.g. category might have 5 level of subcategory, category b have 3 , category c might have 6 sub catgory , on.
here data hierarchy(just example)
category sub category 1 sub-category-sub 1 sub-category-sub 2 sub-category-sub 3 sub category 2 sub-category-sub 1 sub-category-sub 2 sub-category-sub 3 category b sub category 1 sub category 2 sub-category-sub 1 sub-category-sub 2 sub-category-sub 3 sub-category-sub 1 sub-category-sub 2 my question how can implement kind of behavior in android using listiview? have seen kind of navigation in homedeopot app.. best buy app has same functionaltiy. in ios, apple store app has similar functionality(just example)
so in 1 sentence question be
how can use list view navigation 1 in home deopt app or best buy app or other app display first category , on clicking on category load list view ?
edit
finally found answer. first of solution asked wrong approach problem. instead of having multiple views, can set adapter dynamically listview, , animate list view left right.
for animation see following url.
use custom adapter , have boolean collapsed in item model. work on value of collapsed in getview, getcount, etc.
i guess made such adapter / listview compilation, may want search such library on github.
Comments
Post a Comment