Codota Logo
YViewPager.dispatchOnPageSelected
Code IndexAdd Codota to your IDE (free)

How to use
dispatchOnPageSelected
method
in
cn.youngkaaa.yviewpager.YViewPager

Best Java code snippets using cn.youngkaaa.yviewpager.YViewPager.dispatchOnPageSelected (Showing top 4 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
StringBuilder s =
  • Codota Iconnew StringBuilder()
  • Codota Iconnew StringBuilder(32)
  • Codota IconString str;new StringBuilder(str)
  • Smart code suggestions by Codota
}
origin: open-android/ViewPager

private void scrollToItemHorizontal(int item, boolean smoothScroll, int velocity,
                  boolean dispatchSelected) {
  final ItemInfo curInfo = infoForPosition(item);
  int destX = 0;
  if (curInfo != null) {
    final int width = getClientWidth();
    destX = (int) (width * Math.max(mFirstOffset,
        Math.min(curInfo.offset, mLastOffset)));
  }
  if (smoothScroll) {
    smoothScrollToHorizontal(destX, 0, velocity);
    if (dispatchSelected) {
      dispatchOnPageSelected(item);
    }
  } else {
    if (dispatchSelected) {
      dispatchOnPageSelected(item);
    }
    completeScrollHorizontal(false);
    scrollTo(destX, 0);
    pageScrolledHorizontal(destX);
  }
}
origin: open-android/ViewPager

private void scrollToItemVertical(int item, boolean smoothScroll, int velocity,
                 boolean dispatchSelected) {
  final ItemInfo curInfo = infoForPosition(item);
  int destY = 0;
  if (curInfo != null) {
    final int height = getClientHeight();
    destY = (int) (height * Math.max(mFirstOffset,
        Math.min(curInfo.offset, mLastOffset)));
    mDestY = destY;
  }
  if (smoothScroll) {
    smoothScrollToVertical(0, destY, velocity);
    if (dispatchSelected) {
      dispatchOnPageSelected(item);
    }
  } else {
    if (dispatchSelected) {
      dispatchOnPageSelected(item);
    }
    completeScrollVertical(false);
    scrollTo(0, destY);
    pageScrolledVertical(destY);
  }
}
origin: open-android/ViewPager

dispatchOnPageSelected(item);
origin: open-android/ViewPager

dispatchOnPageSelected(item);
cn.youngkaaa.yviewpagerYViewPagerdispatchOnPageSelected

Popular methods of YViewPager

  • getCurrentItem
  • setCurrentItem
    Set the currently selected page.
  • addNewItem
  • addOnPageChangeListener
  • addViewInLayout
  • arrowScroll
    Handle scrolling in response to a left or right arrow click.
  • calculatePageOffsetsHorizontal
  • calculatePageOffsetsVertical
  • canScrollHorizontal
    Tests scrollability within child views of v given a delta of dx.
  • canScrollHorizontally
    Check if this ViewPager can be scrolled horizontally in a certain direction.
  • canScrollVertical
    Tests scrollability within child views of v given a delta of dx.
  • checkLayoutParams
  • canScrollVertical,
  • checkLayoutParams,
  • completeScrollHorizontal,
  • completeScrollVertical,
  • dataSetChanged,
  • determineTargetPageHorizontal,
  • determineTargetPageVertical,
  • dispatchOnPageScrolled,
  • dispatchOnScrollStateChanged

Popular in Java

  • Parsing JSON documents to java classes using gson
  • getSharedPreferences (Context)
  • addToBackStack (FragmentTransaction)
  • onCreateOptionsMenu (Activity)
  • ObjectMapper (com.fasterxml.jackson.databind)
    This mapper (or, data binder, or codec) provides functionality for converting between Java objects (
  • IOException (java.io)
    Signals that an I/O exception of some sort has occurred. This class is the general class of exceptio
  • Permission (java.security)
    Abstract class for representing access to a system resource. All permissions have a name (whose inte
  • Set (java.util)
    A collection that contains no duplicate elements. More formally, sets contain no pair of elements e1
  • IOUtils (org.apache.commons.io)
    General IO stream manipulation utilities. This class provides static utility methods for input/outpu
  • SAXParseException (org.xml.sax)
    Encapsulate an XML parse error or warning.This exception may include information for locating the er
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now