39 lines
898 B
Java
Executable File
39 lines
898 B
Java
Executable File
package me.everything.android.ui.overscroll.adapters;
|
|
|
|
import android.view.View;
|
|
|
|
import me.everything.android.ui.overscroll.HorizontalOverScrollBounceEffectDecorator;
|
|
import me.everything.android.ui.overscroll.VerticalOverScrollBounceEffectDecorator;
|
|
|
|
/**
|
|
* A static adapter for views that are ALWAYS over-scroll-able (e.g. image view).
|
|
*
|
|
* @author amit
|
|
*
|
|
* @see HorizontalOverScrollBounceEffectDecorator
|
|
* @see VerticalOverScrollBounceEffectDecorator
|
|
*/
|
|
public class StaticOverScrollDecorAdapter implements IOverScrollDecoratorAdapter {
|
|
|
|
protected final View mView;
|
|
|
|
public StaticOverScrollDecorAdapter(View view) {
|
|
mView = view;
|
|
}
|
|
|
|
@Override
|
|
public View getView() {
|
|
return mView;
|
|
}
|
|
|
|
@Override
|
|
public boolean isInAbsoluteStart() {
|
|
return true;
|
|
}
|
|
|
|
@Override
|
|
public boolean isInAbsoluteEnd() {
|
|
return true;
|
|
}
|
|
}
|