diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2018-07-23 00:05:12 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2018-07-23 00:05:12 +0200 |
commit | 3a16c088210733e07ffe6e1b2cc966ddae3fb19b (patch) | |
tree | 8284775bb2ce01edaea57c1cc73cbe1154b4c14c /app/src/main/res/layout | |
parent | 76fb6a318e7a8e1f26cd82692750c4584cda5298 (diff) |
Make placeholder pretty
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'app/src/main/res/layout')
-rw-r--r-- | app/src/main/res/layout/tunnel_list_fragment.xml | 20 |
1 files changed, 15 insertions, 5 deletions
diff --git a/app/src/main/res/layout/tunnel_list_fragment.xml b/app/src/main/res/layout/tunnel_list_fragment.xml index 377aeac1..48293133 100644 --- a/app/src/main/res/layout/tunnel_list_fragment.xml +++ b/app/src/main/res/layout/tunnel_list_fragment.xml @@ -68,17 +68,27 @@ app:fab_title="@string/create_from_file" /> </com.wireguard.android.widget.fab.FloatingActionsMenu> - <RelativeLayout + <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" + android:orientation="vertical" android:visibility="@{tunnels.size() == 0 ? android.view.View.VISIBLE : android.view.View.GONE}" android:layout_gravity="center"> + <android.support.v7.widget.AppCompatImageView + android:id="@+id/logo_placeholder" + android:layout_width="140dp" + android:layout_height="140dp" + android:layout_gravity="center" + android:tint="@color/transparent_background_placeholder" + android:layout_marginTop="-70dp" + android:layout_marginBottom="20dp" + android:src="@mipmap/ic_launcher" /> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" - android:textSize="24sp" - android:layout_centerInParent="true" - android:text="@string/no_tunnels_imported_placeholder" /> - </RelativeLayout> + android:layout_gravity="center" + android:textSize="20sp" + android:text="@string/tunnel_list_placeholder" /> + </LinearLayout> </android.support.design.widget.CoordinatorLayout> </layout> |