I'd like to implement drill down view in Android. Currently, onListItemClick, I refill the same list view with different data.
questions:
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.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With