0

I have an activity which contains a ViewPager which lets me swipe between four pages and a RelativeLayout at the bottom containing tabs for the pages. I was wondering if it was possible to make it so that when I drag the bottom RelativeLayout up it starts a new activity ending the ViewPager activity.

Added horrible diagram to help explain

enter image description here

Janki Gadhiya
  • 4,492
  • 2
  • 29
  • 59
user3074140
  • 733
  • 3
  • 13
  • 30

1 Answers1

0

I think this link will help you.

slide up xml animation on change activity in android

You can just change the animations X and Y values to create Slide Up animation on startActivity.

Community
  • 1
  • 1
Ani
  • 1,041
  • 6
  • 15