Search code examples
androidviewflipper

Android : swipe between activities using a single resource


I have an activity (A) with a listview that opens a second activity (B) displaying details related to the clicked row. The activity (B) is opened with the following code :

Intent ident = new Intent(getApplicationContext(), DetailedActivity.class);
ident.putExtra("id", id);
startActivity(ident);

What I want is when the activity (B) is opened, to be able to swipe left or right to display detail to the previous/next ListView row. I can't find a way to use the ViewFlipper to reload the same View for a different id...

any ideas ?


Solution

  • I just find out all I needed here: ViewPager It doesn't take too much effort to implement a nice effect.