PlayerAndroid/liboverscroll/src/main/java/me/everything/android/ui/overscroll/adapters/IOverScrollDecoratorAdapter...

34 lines
946 B
Java
Executable File

package me.everything.android.ui.overscroll.adapters;
import android.view.View;
import me.everything.android.ui.overscroll.HorizontalOverScrollBounceEffectDecorator;
/**
* @author amitd
*
* @see HorizontalOverScrollBounceEffectDecorator
*/
public interface IOverScrollDecoratorAdapter {
View getView();
/**
* Is view in it's absolute start position - such that a negative over-scroll can potentially
* be initiated. For example, in list-views, this is synonymous with the first item being
* fully visible.
*
* @return Whether in absolute start position.
*/
boolean isInAbsoluteStart();
/**
* Is view in it's absolute end position - such that an over-scroll can potentially
* be initiated. For example, in list-views, this is synonymous with the last item being
* fully visible.
*
* @return Whether in absolute end position.
*/
boolean isInAbsoluteEnd();
}