diff options
author | Samuel Holland <samuel@sholland.org> | 2018-01-06 04:24:05 -0600 |
---|---|---|
committer | Samuel Holland <samuel@sholland.org> | 2018-01-06 05:18:34 -0600 |
commit | 193de10972090338a721454503d3e6408eb76660 (patch) | |
tree | 8aa3054b39b4df0cb8f3c3d1a6e680c22240c8b0 /app/src/main/res/layout | |
parent | dbed7155d611071eae969559be67d75b2996d4a8 (diff) |
TunnelDetailFragment: Remove state text and last change
Signed-off-by: Samuel Holland <samuel@sholland.org>
Diffstat (limited to 'app/src/main/res/layout')
-rw-r--r-- | app/src/main/res/layout/tunnel_detail_fragment.xml | 56 |
1 files changed, 11 insertions, 45 deletions
diff --git a/app/src/main/res/layout/tunnel_detail_fragment.xml b/app/src/main/res/layout/tunnel_detail_fragment.xml index e23536a7..5a30e8dd 100644 --- a/app/src/main/res/layout/tunnel_detail_fragment.xml +++ b/app/src/main/res/layout/tunnel_detail_fragment.xml @@ -38,79 +38,45 @@ <TextView android:id="@+id/interface_title" style="?android:attr/textAppearanceMedium" - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:layout_alignParentTop="true" - android:text="@string/iface" /> - - <TextView - android:id="@+id/interface_name_label" - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:layout_below="@+id/interface_title" - android:layout_marginTop="8dp" - android:labelFor="@+id/interface_name_text" - android:text="@string/name" /> - - <TextView - android:id="@+id/interface_name_text" - style="?android:attr/textAppearanceMedium" - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:layout_below="@+id/interface_name_label" - android:text="@{tunnel.name}" /> - - <TextView - android:id="@+id/status_label" - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:layout_below="@+id/interface_name_text" - android:layout_marginTop="8dp" - android:labelFor="@+id/status_text" - android:text="@string/status" /> - - <TextView - android:id="@+id/status_text" - style="?android:attr/textAppearanceMedium" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentStart="true" - android:layout_below="@+id/status_label" + android:layout_alignParentTop="true" android:layout_toStartOf="@+id/tunnel_switch" - android:text="@{tunnel.state.name}" /> + android:text="@string/iface" /> <com.wireguard.android.widget.ToggleSwitch android:id="@+id/tunnel_switch" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:layout_alignBaseline="@+id/status_text" + android:layout_alignBaseline="@+id/interface_title" android:layout_alignParentEnd="true" android:enabled="@{tunnel.state != State.UNKNOWN}" app:checked="@{tunnel.state == State.UP}" app:onBeforeCheckedChanged="@{() -> tunnel.setState(State.TOGGLE)}" /> <TextView - android:id="@+id/last_change_label" + android:id="@+id/interface_name_label" android:layout_width="match_parent" android:layout_height="wrap_content" - android:layout_below="@id/status_text" + android:layout_below="@+id/interface_title" android:layout_marginTop="8dp" - android:labelFor="@+id/last_change_text" - android:text="@string/last_change" /> + android:labelFor="@+id/interface_name_text" + android:text="@string/name" /> <TextView - android:id="@+id/last_change_text" + android:id="@+id/interface_name_text" style="?android:attr/textAppearanceMedium" android:layout_width="match_parent" android:layout_height="wrap_content" - android:layout_below="@+id/last_change_label" - android:text="@{tunnel.lastStateChange}" /> + android:layout_below="@+id/interface_name_label" + android:text="@{tunnel.name}" /> <TextView android:id="@+id/public_key_label" android:layout_width="match_parent" android:layout_height="wrap_content" - android:layout_below="@id/last_change_text" + android:layout_below="@id/interface_name_text" android:layout_marginTop="8dp" android:labelFor="@+id/public_key_text" android:text="@string/public_key" /> |