public class HorizontalRecyclerViewListener
extends androidx.recyclerview.widget.RecyclerView.OnScrollListener
implements androidx.recyclerview.widget.RecyclerView.OnItemTouchListener
| Constructor and Description |
|---|
HorizontalRecyclerViewListener(ITableView tableView) |
| Modifier and Type | Method and Description |
|---|---|
int |
getScrollPosition()
When parent RecyclerView scrolls vertically, the child horizontal recycler views should be
displayed on right scroll position.
|
int |
getScrollPositionOffset()
Users can scroll the recyclerViews to the any x position which may not the exact position.
|
boolean |
onInterceptTouchEvent(androidx.recyclerview.widget.RecyclerView rv,
android.view.MotionEvent e) |
void |
onRequestDisallowInterceptTouchEvent(boolean disallowIntercept) |
void |
onScrolled(androidx.recyclerview.widget.RecyclerView recyclerView,
int dx,
int dy) |
void |
onScrollStateChanged(androidx.recyclerview.widget.RecyclerView recyclerView,
int newState) |
void |
onTouchEvent(androidx.recyclerview.widget.RecyclerView rv,
android.view.MotionEvent e) |
void |
setScrollPosition(int position)
To change default scroll position that is before TableView is not populated.
|
void |
setScrollPositionOffset(int offset) |
public HorizontalRecyclerViewListener(@NonNull
ITableView tableView)
public boolean onInterceptTouchEvent(@NonNull
androidx.recyclerview.widget.RecyclerView rv,
@NonNull
android.view.MotionEvent e)
onInterceptTouchEvent in interface androidx.recyclerview.widget.RecyclerView.OnItemTouchListenerpublic void onTouchEvent(@NonNull
androidx.recyclerview.widget.RecyclerView rv,
@NonNull
android.view.MotionEvent e)
onTouchEvent in interface androidx.recyclerview.widget.RecyclerView.OnItemTouchListenerpublic void onRequestDisallowInterceptTouchEvent(boolean disallowIntercept)
onRequestDisallowInterceptTouchEvent in interface androidx.recyclerview.widget.RecyclerView.OnItemTouchListenerpublic void onScrolled(@NonNull
androidx.recyclerview.widget.RecyclerView recyclerView,
int dx,
int dy)
onScrolled in class androidx.recyclerview.widget.RecyclerView.OnScrollListenerpublic void onScrollStateChanged(@NonNull
androidx.recyclerview.widget.RecyclerView recyclerView,
int newState)
onScrollStateChanged in class androidx.recyclerview.widget.RecyclerView.OnScrollListenerpublic int getScrollPosition()
getScrollPositionOffset()public int getScrollPositionOffset()
getScrollPosition()public void setScrollPositionOffset(int offset)
public void setScrollPosition(int position)