Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

onScrollLeftChange added to SwipeListener #72

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,8 @@ public static interface SwipeListener {
*/
public void onScrollStateChange(int state, float scrollPercent);

public void onScrollLeftChange(int left);

/**
* Invoke when edge touched
*
Expand Down Expand Up @@ -511,6 +513,10 @@ public int getViewVerticalDragRange(View child) {

@Override
public void onViewPositionChanged(View changedView, int left, int top, int dx, int dy) {

for (SwipeListener listener : mListeners) {
listener.onScrollLeftChange(left);
}
super.onViewPositionChanged(changedView, left, top, dx, dy);
if ((mTrackingEdge & EDGE_LEFT) != 0) {
mScrollPercent = Math.abs((float) left
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ public void onActivityCreate() {
public void onScrollStateChange(int state, float scrollPercent) {
}

@Override
public void onScrollLeftChange(int left) {
}

@Override
public void onEdgeTouch(int edgeFlag) {
Utils.convertActivityToTranslucent(mActivity);
Expand Down