You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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" />
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;
}
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 .
The text was updated successfully, but these errors were encountered: