Dragon
Dragon

Reputation: 453

Android - Viewpager Customization

I am using a Viewpager for using user profiles. I have few requirements for Viewpager.

  1. I want it to be locked in one direction. i.e. I want user should be able to swipe left only to load new fragments. Once he has moved to next fragment, he shouldn't be able to go back to previous fragment. I saw so many answers but could not infer a apt answer. How to disable ViewPager from swiping in one direction User says he was unable to get the required result.

  2. I want to use some good animation for fragment page change transition effect rather than simple sliding. I saw JazzyViewPager - https://github.com/jfeinstein10/JazzyViewPager but was unable to understand how to incorporate in my existing project.

In case, it is possible I was thinking of using a pan for some 3D horizontal rolling (Not a priority though).

Upvotes: 1

Views: 431

Answers (1)

user2894435
user2894435

Reputation:

First Problem's solution See Here and Another Link

Second you can add Transition effect to fragment what you expect step by step explanation give here

and also see This

Upvotes: 1

Related Questions