summaryrefslogtreecommitdiffhomepage
path: root/app/src/main/res/layout
diff options
context:
space:
mode:
authorEric Kuck <eric@bluelinelabs.com>2018-07-11 12:48:18 -0500
committerJason A. Donenfeld <Jason@zx2c4.com>2018-07-11 21:03:22 +0200
commit3c6635ac895157a31686615c3ceed1e32c8baf73 (patch)
tree9bd0a78e4940d15f371e0cca9d7a827e2ba9bf6c /app/src/main/res/layout
parentcab4d3507d0428b56188a97961741c1e5e91fadd (diff)
fab: use support library's rendering
Signed-off-by: Eric Kuck <eric@bluelinelabs.com>
Diffstat (limited to 'app/src/main/res/layout')
-rw-r--r--app/src/main/res/layout/tunnel_list_fragment.xml21
1 files changed, 11 insertions, 10 deletions
diff --git a/app/src/main/res/layout/tunnel_list_fragment.xml b/app/src/main/res/layout/tunnel_list_fragment.xml
index cad2e094..5aff4739 100644
--- a/app/src/main/res/layout/tunnel_list_fragment.xml
+++ b/app/src/main/res/layout/tunnel_list_fragment.xml
@@ -23,7 +23,8 @@
android:id="@+id/main_container"
android:layout_width="match_parent"
android:layout_height="match_parent"
- android:background="?android:attr/colorBackground">
+ android:background="?android:attr/colorBackground"
+ android:clipChildren="false">
<android.support.v7.widget.RecyclerView
android:id="@+id/tunnel_list"
@@ -39,27 +40,27 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="bottom|end"
- android:layout_margin="8dp"
+ android:layout_margin="16dp"
app:fab_labelStyle="@style/fab_label"
- app:fab_labelsPosition="left"
- app:layout_dodgeInsetEdges="bottom">
+ android:clipChildren="false"
+ app:fab_labelsPosition="left" >
- <com.wireguard.android.widget.fab.FloatingActionButton
+ <com.wireguard.android.widget.fab.LabeledFloatingActionButton
android:id="@+id/create_empty"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:onClick="@{fragment::onRequestCreateConfig}"
- app:fab_icon="@drawable/ic_action_edit_inverse"
- app:fab_size="mini"
+ app:fabSize="mini"
+ app:srcCompat="@drawable/ic_action_edit_inverse"
app:fab_title="@string/create_empty" />
- <com.wireguard.android.widget.fab.FloatingActionButton
+ <com.wireguard.android.widget.fab.LabeledFloatingActionButton
android:id="@+id/create_from_file"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:onClick="@{fragment::onRequestImportConfig}"
- app:fab_icon="@drawable/ic_action_open_inverse"
- app:fab_size="mini"
+ app:srcCompat="@drawable/ic_action_open_inverse"
+ app:fabSize="mini"
app:fab_title="@string/create_from_file" />
</com.wireguard.android.widget.fab.FloatingActionsMenu>
</android.support.design.widget.CoordinatorLayout>