From: Damyan Ivanov Date: Sat, 19 Jan 2019 18:58:54 +0000 (+0000) Subject: profile list: more material design X-Git-Tag: v0.3~21 X-Git-Url: https://git.ktnx.net/?a=commitdiff_plain;h=4c4305ee22166d4c8f3c5a57b8357af3fd77c29e;p=mobile-ledger.git profile list: more material design --- diff --git a/app/src/main/java/net/ktnx/mobileledger/ui/activity/ProfileListActivity.java b/app/src/main/java/net/ktnx/mobileledger/ui/activity/ProfileListActivity.java index 6932e978..42c832a8 100644 --- a/app/src/main/java/net/ktnx/mobileledger/ui/activity/ProfileListActivity.java +++ b/app/src/main/java/net/ktnx/mobileledger/ui/activity/ProfileListActivity.java @@ -137,25 +137,6 @@ public class ProfileListActivity extends AppCompatActivity { new ItemTouchHelper(cb).attachToRecyclerView(recyclerView); recyclerView.addItemDecoration(new DividerItemDecoration(recyclerView.getContext(), DividerItemDecoration.VERTICAL)); - - recyclerView.setOnFlingListener(new RecyclerView.OnFlingListener() { - @Override - public boolean onFling(int dX, int dY) { -// Log.d("tmp", String.format("fling %d %d", dX, dY)); - if (dY > 0) fab.hide(); - if (dY < 0) fab.show(); - return false; - } - }); - - recyclerView.addOnScrollListener(new RecyclerView.OnScrollListener() { - @Override - public void onScrolled(@NonNull RecyclerView recyclerView, int dx, int dy) { - super.onScrolled(recyclerView, dx, dy); - if (dy > 0) fab.hide(); - if (dy < 0) fab.show(); - } - }); } public static class ProfilesRecyclerViewAdapter diff --git a/app/src/main/res/layout/activity_profile_list.xml b/app/src/main/res/layout/activity_profile_list.xml index 65a90c6b..c2370316 100644 --- a/app/src/main/res/layout/activity_profile_list.xml +++ b/app/src/main/res/layout/activity_profile_list.xml @@ -1,5 +1,4 @@ - -