Custom ViewPager

后端 未结 3 701
伪装坚强ぢ
伪装坚强ぢ 2021-01-06 23:20

How can i create a customized ViewPager ? To instantiate a page in the ViewPager it\'s something like this :

            public Object instantiateItem(View c         


        
3条回答
  •  情书的邮戳
    2021-01-06 23:52

    Subclass the PagerAdapter class and override the corresponding methods.

    Actually, if you look at the source code, you can only pass a PagerAdapter object to setAdapter() so the answer is no.

提交回复
热议问题