Codota Logo
RecyclerViewOverScrollDecorAdapter.<init>
Code IndexAdd Codota to your IDE (free)

How to use
me.everything.android.ui.overscroll.adapters.RecyclerViewOverScrollDecorAdapter
constructor

Best Java code snippets using me.everything.android.ui.overscroll.adapters.RecyclerViewOverScrollDecorAdapter.<init> (Showing top 2 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
LocalDateTime l =
  • Codota Iconnew LocalDateTime()
  • Codota IconLocalDateTime.now()
  • Codota IconDateTimeFormatter formatter;String text;formatter.parseLocalDateTime(text)
  • Smart code suggestions by Codota
}
origin: EverythingMe/overscroll-decor

/**
 * Set up the over-scroll effect over a specified {@link RecyclerView} view.
 * <br/>Only recycler-views using <b>native</b> Android layout managers (i.e. {@link LinearLayoutManager},
 * {@link GridLayoutManager} and {@link StaggeredGridLayoutManager}) are currently supported
 * by this convenience method.
 *
 * @param recyclerView The view.
 * @param orientation Either {@link #ORIENTATION_HORIZONTAL} or {@link #ORIENTATION_VERTICAL}.
 *
 * @return The over-scroll effect 'decorator', enabling further effect configuration.
 */
public static IOverScrollDecor setUpOverScroll(RecyclerView recyclerView, int orientation) {
  switch (orientation) {
    case ORIENTATION_HORIZONTAL:
      return new HorizontalOverScrollBounceEffectDecorator(new RecyclerViewOverScrollDecorAdapter(recyclerView));
    case ORIENTATION_VERTICAL:
      return new VerticalOverScrollBounceEffectDecorator(new RecyclerViewOverScrollDecorAdapter(recyclerView));
    default:
      throw new IllegalArgumentException("orientation");
  }
}
origin: EverythingMe/overscroll-decor

mVertOverScrollEffect = new VerticalOverScrollBounceEffectDecorator(new RecyclerViewOverScrollDecorAdapter(recyclerView, itemTouchHelperCallback));
me.everything.android.ui.overscroll.adaptersRecyclerViewOverScrollDecorAdapter<init>

Popular methods of RecyclerViewOverScrollDecorAdapter

  • setUpTouchHelperCallback

Popular in Java

  • Start an intent from android
  • putExtra (Intent)
  • runOnUiThread (Activity)
  • findViewById (Activity)
  • IOException (java.io)
    Signals that an I/O exception of some sort has occurred. This class is the general class of exceptio
  • Selector (java.nio.channels)
    A controller for the selection of SelectableChannel objects. Selectable channels can be registered w
  • Date (java.sql)
    A class which can consume and produce dates in SQL Date format. Dates are represented in SQL as yyyy
  • DataSource (javax.sql)
    A factory for connections to the physical data source that this DataSource object represents. An alt
  • StringUtils (org.apache.commons.lang)
    Operations on java.lang.String that arenull safe. * IsEmpty/IsBlank - checks if a String contains
  • Option (scala)
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