Android small problem finishing 1 viewpagerindicator and Viewpager sliding monitoring

Source: Internet
Author: User

2015-10-30

There was a small problem using viewpagerindicator today, and after using Viewpagerindicator and Viewpager associations, The Viewpager slide event is then monitored Viewpager.setonpagechangelistener () and the monitor fails.

1Mviewpager.setadapter (NewMyadapter ()); 2Mindicator.setviewpager (Mviewpager);//associated Viewpagerindicator and Viewpager3Mviewpager.setonpagechangelistener (NewOnpagechangelistener () {4     //at this point the listening content will be invalidated and will not be run5 @Override6      Public voidOnpageselected (intarg0) {7     }        8 @Override9      Public voidOnpagescrolled (intARG0,floatArg1,intarg2) {Ten     } One @Override A      Public voidOnpagescrollstatechanged (intarg0) { -     } -});

Then Baidu to, Viewpagerindicator Association, the page switch monitoring should be set to Viewpagerindicator, the specific code has not been to see. Persist the problem first, and then have time to analyze it carefully.

Android small problem finishing 1 viewpagerindicator and Viewpager sliding monitoring

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.