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

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

Best Java code snippets using cn.youngkaaa.yviewpager.YViewPager.checkLayoutParams (Showing top 1 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

@Override
public void addView(View child, int index, ViewGroup.LayoutParams params) {
  if (!checkLayoutParams(params)) {
    params = generateLayoutParams(params);
  }
  final YViewPager.LayoutParams lp = (YViewPager.LayoutParams) params;
  // Any views added via inflation should be classed as part of the decor
  lp.isDecor |= isDecorView(child);
  if (mInLayout) {
    if (lp != null && lp.isDecor) {
      throw new IllegalStateException("Cannot add pager decor view during layout");
    }
    lp.needsMeasure = true;
    addViewInLayout(child, index, params);
  } else {
    ViewParent parent = child.getParent();
    if (parent != null) {
      ((ViewGroup) parent).removeView(child);
    }
    super.addView(child, index, params);
  }
  if (USE_CACHE) {
    if (child.getVisibility() != GONE) {
      child.setDrawingCacheEnabled(mScrollingCacheEnabled);
    } else {
      child.setDrawingCacheEnabled(false);
    }
  }
}
cn.youngkaaa.yviewpagerYViewPagercheckLayoutParams

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.
  • completeScrollHorizontal
  • canScrollVertical,
  • completeScrollHorizontal,
  • completeScrollVertical,
  • dataSetChanged,
  • determineTargetPageHorizontal,
  • determineTargetPageVertical,
  • dispatchOnPageScrolled,
  • dispatchOnPageSelected,
  • dispatchOnScrollStateChanged

Popular in Java

  • Parsing JSON documents to java classes using gson
  • getSharedPreferences (Context)
  • addToBackStack (FragmentTransaction)
  • onCreateOptionsMenu (Activity)
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • MalformedURLException (java.net)
    Thrown to indicate that a malformed URL has occurred. Either no legal protocol could be found in a s
  • URLConnection (java.net)
    The abstract class URLConnection is the superclass of all classes that represent a communications li
  • Arrays (java.util)
    This class contains various methods for manipulating arrays (such as sorting and searching). This cl
  • Timer (java.util)
    A facility for threads to schedule tasks for future execution in a background thread. Tasks may be s
  • Get (org.apache.hadoop.hbase.client)
    Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
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