How can I drill (list)?

I would like to implement the expanded view in Android. Currently onListItemClick, I am replenishing the same list with different data.

questions:

  • any other suggestions? Something like this being done using a UITableView on an iPhone?
  • Is it possible to revive (push left or right) the operation of filling the list?
+6
android listview drilldown
source share
3 answers

It is actually quite simple. Just implement your main view as a ViewAnimator , add a listview view to it. then in onItemClick as a list just create the following view and click it in viewAnimator. when done - call showPrevious() and it will return to the previous list.

+7
source share

If you implement the detail view as a second Activity , passing the selected item using Intent , you get an animated transition between actions. When you move forward, the new Activity scales from the middle of the screen, and when you move backwards, the opposite happens.

+1
source share

"Android Way" does this (if it is only two levels of the hierarchy) will use the ExpandableListView . You can find this in the Demos API sample project.

To implement something truly identical to the behavior of the iPhone, I am sure that you must follow a tough way to implement this yourself.

  • Option A: implement separate actions for each hierarchy level (possibly using ListActivities) and manually push the data there
  • Option B: it is possible to implement sliding input and output through SlidingDrawer . I'm not sure though, have not used it yet.

It seems to be hard to implement on Android. See what others have to offer!

-2
source share

All Articles