From 2852309183ef8a0601f9d33fe0f379ae612b8ae0 Mon Sep 17 00:00:00 2001 From: Max Lv Date: Mon, 26 Dec 2016 12:52:13 +0800 Subject: [PATCH] Move snackbar to the bottom --- src/main/res/layout/layout_global_settings.xml | 4 ---- src/main/res/layout/layout_main.xml | 7 ++++++- src/main/res/layout/layout_profile_config.xml | 4 ---- src/main/res/layout/layout_profiles.xml | 4 ---- .../scala/com/github/shadowsocks/ProfilesFragment.scala | 2 +- 5 files changed, 7 insertions(+), 14 deletions(-) diff --git a/src/main/res/layout/layout_global_settings.xml b/src/main/res/layout/layout_global_settings.xml index 9a44c366..38261be2 100644 --- a/src/main/res/layout/layout_global_settings.xml +++ b/src/main/res/layout/layout_global_settings.xml @@ -4,10 +4,6 @@ android:layout_width="match_parent" android:layout_height="match_parent"> - + android:layout_above="@+id/snackbar"> + diff --git a/src/main/res/layout/layout_profile_config.xml b/src/main/res/layout/layout_profile_config.xml index c4980567..62b2ba58 100644 --- a/src/main/res/layout/layout_profile_config.xml +++ b/src/main/res/layout/layout_profile_config.xml @@ -4,10 +4,6 @@ android:layout_width="match_parent" android:layout_height="match_parent"> - - i }.getOrElse(-1)) - undoManager = new UndoSnackbarManager[Profile](view.findViewById(R.id.snackbar), profilesAdapter.undo, profilesAdapter.commit) + undoManager = new UndoSnackbarManager[Profile](getActivity.findViewById(R.id.snackbar), profilesAdapter.undo, profilesAdapter.commit) new ItemTouchHelper(new SimpleCallback(ItemTouchHelper.UP | ItemTouchHelper.DOWN, ItemTouchHelper.START | ItemTouchHelper.END) { def onSwiped(viewHolder: ViewHolder, direction: Int) {