aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2018-07-18 02:12:58 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2018-07-18 02:15:14 +0200
commitf315654d404959bee2b15744d870a6bdf2fd0472 (patch)
treeff282dbf462144c95d65de5d854b17c838c7aa69
parentfab: make fab respond to recyclerview scroll events (diff)
downloadwireguard-android-f315654d404959bee2b15744d870a6bdf2fd0472.tar.xz
wireguard-android-f315654d404959bee2b15744d870a6bdf2fd0472.zip
fab: add fab sized padding at bottom of recycler view
This way we can keep scrolling when there are exactly the right number of items, so that the toggle switch becomes visible. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
-rw-r--r--app/src/main/res/layout/tunnel_list_fragment.xml2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/src/main/res/layout/tunnel_list_fragment.xml b/app/src/main/res/layout/tunnel_list_fragment.xml
index 5dd091f8..96b13b37 100644
--- a/app/src/main/res/layout/tunnel_list_fragment.xml
+++ b/app/src/main/res/layout/tunnel_list_fragment.xml
@@ -30,6 +30,8 @@
android:id="@+id/tunnel_list"
android:layout_width="match_parent"
android:layout_height="match_parent"
+ android:paddingBottom="@dimen/design_fab_size_normal"
+ android:clipToPadding="false"
android:choiceMode="multipleChoiceModal"
app:items="@{tunnels}"
app:layout="@{@layout/tunnel_list_item}"