mirror of
https://github.com/Kunzisoft/KeePassDX.git
synced 2026-12-05 00:02:27 -08:00
Group activity with fragment for navigation
This commit is contained in:
1 parent
d4459de49b
commit
5286a60142
10 files changed
+506
-311
No files matched your search
@@ -26,7 +26,6 @@ import android.support.design.widget.FloatingActionButton;
|
||||
import android.support.v4.view.ViewCompat;
|
||||
import android.support.v4.view.ViewPropertyAnimatorListener;
|
||||
import android.support.v4.view.animation.FastOutSlowInInterpolator;
|
||||
import android.support.v7.widget.RecyclerView;
|
||||
import android.util.AttributeSet;
|
||||
import android.view.LayoutInflater;
|
||||
import android.view.MotionEvent;
|
||||
@@ -124,20 +123,14 @@ public class AddNodeButtonView extends RelativeLayout {
|
||||
return super.onTouchEvent(event);
|
||||
}
|
||||
|
||||
public RecyclerView.OnScrollListener hideButtonOnScrollListener() {
|
||||
return new RecyclerView.OnScrollListener() {
|
||||
@Override
|
||||
public void onScrolled(RecyclerView recyclerView, int dx, int dy) {
|
||||
super.onScrolled(recyclerView, dx, dy);
|
||||
if (state.equals(State.CLOSE)) {
|
||||
if (dy > 0 && addButtonView.getVisibility() == View.VISIBLE) {
|
||||
hideButton();
|
||||
} else if (dy < 0 && addButtonView.getVisibility() != View.VISIBLE) {
|
||||
showButton();
|
||||
}
|
||||
}
|
||||
public void hideButtonOnScrollListener(int dy) {
|
||||
if (state.equals(State.CLOSE)) {
|
||||
if (dy > 0 && addButtonView.getVisibility() == View.VISIBLE) {
|
||||
hideButton();
|
||||
} else if (dy < 0 && addButtonView.getVisibility() != View.VISIBLE) {
|
||||
showButton();
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
public void showButton() {
|
||||
|
||||
Reference in new issue
Block a user