Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JazzyViewpager Not working Properly #36

Open
rizvan opened this issue Oct 1, 2013 · 2 comments
Open

JazzyViewpager Not working Properly #36

rizvan opened this issue Oct 1, 2013 · 2 comments

Comments

@rizvan
Copy link

rizvan commented Oct 1, 2013

I added library , xml block for jazzypager like this :
<com.jfeinstein.jazzyviewpager.JazzyViewPager
android:id="@+id/viewpager"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />

Added Code in Main activity

JazzyViewPager viewPager = (JazzyViewPager)findViewById(R.id.viewpager);

Then transition effect :
viewPager.setTransitionEffect(TransitionEffect.); ( - any effect)
yet my pages working normally .

@abhishekagarwal
Copy link

Have you implemented the instantiateItem(ViewGroup container, final int position) method in the adapter

@rizvan
Copy link
Author

rizvan commented Oct 4, 2013

Yes i did but its java.lang.NullPointerException exception if i do .
Here's the code :
public JazzyViewPager viewPager;
public Object instantiateItem(ViewGroup container, final int position) {
Object obj = super.instantiateItem(container, position);
viewPager.setObjectForPosition(obj, position);
return obj;
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants