Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I implement drill down (list)view?

I'd like to implement drill down view in Android. Currently, onListItemClick, I refill the same list view with different data.

questions:

  1. any other suggestions? Something like the way it is done using UITableView on iPhone?
  2. is it possible to animate (push left or right) the listview fill operation?
like image 615
HiQuLABS Avatar asked Feb 18 '10 07:02

HiQuLABS


People also ask

How do you insert a drill down in Excel?

From the Design tab > Switch Visualization > Matrix. To enable drill-down, collapse the matrix. From the Design tab > Show Levels > Enable Drill Down One Level at a Time. Double click a top-level hierarchy field.


2 Answers

This is actually rather easy. Just implement your main view as ViewAnimator, add a listview to it. then in onItemClick in list view, just create next view, and push it into viewAnimator. when done - call showPrevious() and it will return to previous list view.

like image 98
reflog Avatar answered Oct 08 '22 06:10

reflog


If you implement the detail view as a second Activity, passing the selected item using an Intent you'll get the animated transition between Activities. When going forward, the new Activity zooms out from the middle of the screen and when going backward the reverse happens.

like image 22
Dave Webb Avatar answered Oct 08 '22 06:10

Dave Webb