Tabnine Logo
HorizontalOverScrollBounceEffectDecorator.detach
Code IndexAdd Tabnine to your IDE (free)

How to use
detach
method
in
me.everything.android.ui.overscroll.HorizontalOverScrollBounceEffectDecorator

Best Java code snippets using me.everything.android.ui.overscroll.HorizontalOverScrollBounceEffectDecorator.detach (Showing top 3 results out of 315)

origin: EverythingMe/overscroll-decor

@Test
public void detach_decoratorIsAttached_detachFromView() throws Exception {
  // Arrange
  HorizontalOverScrollBounceEffectDecorator uut = new HorizontalOverScrollBounceEffectDecorator(mViewAdapter);
  // Act
  uut.detach();
  // Assert
  verify(mView).setOnTouchListener(eq((View.OnTouchListener) null));
  verify(mView).setOverScrollMode(View.OVER_SCROLL_ALWAYS);
}
origin: EverythingMe/overscroll-decor

@Test
public void detach_decoratorIsAttached_detachFromView() throws Exception {
  // Arrange
  HorizontalOverScrollBounceEffectDecorator uut = new HorizontalOverScrollBounceEffectDecorator(mViewAdapter);
  // Act
  uut.detach();
  // Assert
  verify(mView).setOnTouchListener(eq((View.OnTouchListener) null));
  verify(mView).setOverScrollMode(View.OVER_SCROLL_ALWAYS);
}
origin: EverythingMe/overscroll-decor

@Test
public void detach_overScrollInEffect_detachFromView() throws Exception {
  when(mViewAdapter.isInAbsoluteStart()).thenReturn(true);
  when(mViewAdapter.isInAbsoluteEnd()).thenReturn(false);
  HorizontalOverScrollBounceEffectDecorator uut = getUUT();
  uut.onTouch(mView, createShortRightMoveEvent());
  // Act
  uut.detach();
  // Assert
  verify(mView).setOnTouchListener(eq((View.OnTouchListener) null));
  verify(mView).setOverScrollMode(View.OVER_SCROLL_ALWAYS);
}
me.everything.android.ui.overscrollHorizontalOverScrollBounceEffectDecoratordetach

Popular methods of HorizontalOverScrollBounceEffectDecorator

  • <init>
    C'tor, creating the effect with explicit arguments.
  • getCurrentState
  • onTouch
  • setOverScrollStateListener
  • setOverScrollUpdateListener

Popular in Java

  • Running tasks concurrently on multiple threads
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • getContentResolver (Context)
  • getSharedPreferences (Context)
  • InputStreamReader (java.io)
    A class for turning a byte stream into a character stream. Data read from the source input stream is
  • Collections (java.util)
    This class consists exclusively of static methods that operate on or return collections. It contains
  • ResourceBundle (java.util)
    ResourceBundle is an abstract class which is the superclass of classes which provide Locale-specifi
  • Handler (java.util.logging)
    A Handler object accepts a logging request and exports the desired messages to a target, for example
  • Stream (java.util.stream)
    A sequence of elements supporting sequential and parallel aggregate operations. The following exampl
  • Logger (org.slf4j)
    The org.slf4j.Logger interface is the main user entry point of SLF4J API. It is expected that loggin
  • From CI to AI: The AI layer in your organization
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now