android - Using ViewPager with sliding Screen always getting 5 pages? -


i using viewpager sliding screen given here : http://developer.android.com/training/animation/screen-slide.html.

but getting 5 pages have changed num in activity .but still displaying 5 pages. there limit . if yes how overcome problem need show around 20 pages of this?

please ?

private static final int num_pages = 5;  private class screenslidepageradapter extends fragmentstatepageradapter {     public screenslidepageradapter(fragmentmanager fm) {         super(fm);     }      @override     public fragment getitem(int position) {         return new screenslidepagefragment();     }      @override     public int getcount() {         return num_pages;     } } 

your adapter returning 5 getcount method. change size of collection


Comments

Popular posts from this blog

curl - PHP fsockopen help required -

HTTP/1.0 407 Proxy Authentication Required PHP -

c# - Resource not found error -