com.nirhart.parallaxscroll.views
Class ParallaxListViewHelper
java.lang.Object
com.nirhart.parallaxscroll.views.ParallaxListViewHelper
- All Implemented Interfaces:
- android.widget.AbsListView.OnScrollListener
public class ParallaxListViewHelper
- extends java.lang.Object
- implements android.widget.AbsListView.OnScrollListener
| Fields inherited from interface android.widget.AbsListView.OnScrollListener |
SCROLL_STATE_FLING, SCROLL_STATE_IDLE, SCROLL_STATE_TOUCH_SCROLL |
|
Constructor Summary |
protected |
ParallaxListViewHelper(android.content.Context context,
android.util.AttributeSet attrs,
android.widget.ListView listView)
|
|
Method Summary |
protected void |
addParallaxedHeaderView(android.view.View v)
|
protected void |
addParallaxedHeaderView(android.view.View v,
java.lang.Object data,
boolean isSelectable)
|
protected void |
addParallaxedView(android.view.View v)
|
protected void |
init(android.content.Context context,
android.util.AttributeSet attrs,
android.widget.ListView listView)
|
void |
onScroll(android.widget.AbsListView view,
int firstVisibleItem,
int visibleItemCount,
int totalItemCount)
|
void |
onScrollStateChanged(android.widget.AbsListView view,
int scrollState)
|
protected void |
parallaxScroll()
|
protected void |
setOnScrollListener(android.widget.AbsListView.OnScrollListener l)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ParallaxListViewHelper
protected ParallaxListViewHelper(android.content.Context context,
android.util.AttributeSet attrs,
android.widget.ListView listView)
init
protected void init(android.content.Context context,
android.util.AttributeSet attrs,
android.widget.ListView listView)
setOnScrollListener
protected void setOnScrollListener(android.widget.AbsListView.OnScrollListener l)
addParallaxedHeaderView
protected void addParallaxedHeaderView(android.view.View v)
addParallaxedHeaderView
protected void addParallaxedHeaderView(android.view.View v,
java.lang.Object data,
boolean isSelectable)
addParallaxedView
protected void addParallaxedView(android.view.View v)
parallaxScroll
protected void parallaxScroll()
onScroll
public void onScroll(android.widget.AbsListView view,
int firstVisibleItem,
int visibleItemCount,
int totalItemCount)
- Specified by:
onScroll in interface android.widget.AbsListView.OnScrollListener
onScrollStateChanged
public void onScrollStateChanged(android.widget.AbsListView view,
int scrollState)
- Specified by:
onScrollStateChanged in interface android.widget.AbsListView.OnScrollListener