From 852a8a00273c9128efeed0217a8e5d3fcd8bf780 Mon Sep 17 00:00:00 2001 From: Lena Date: Sat, 1 Aug 2026 00:00:00 +0000 Subject: app: harden mirroring lifecycle and state --- app/src/main/res/layout/device_row.xml | 28 +--- app/src/main/res/layout/licenses.xml | 20 +++ app/src/main/res/layout/main.xml | 264 +++++++++++++++++---------------- app/src/main/res/layout/mirror.xml | 46 ++++-- app/src/main/res/layout/settings.xml | 60 +++++--- 5 files changed, 242 insertions(+), 176 deletions(-) create mode 100644 app/src/main/res/layout/licenses.xml (limited to 'app/src/main/res/layout') diff --git a/app/src/main/res/layout/device_row.xml b/app/src/main/res/layout/device_row.xml index f06ab20..0471639 100644 --- a/app/src/main/res/layout/device_row.xml +++ b/app/src/main/res/layout/device_row.xml @@ -1,28 +1,14 @@ - - + - - - - - - + android:drawableStart="@drawable/ic_device" + android:drawablePadding="@dimen/space_md" + android:foreground="?android:attr/selectableItemBackground"/> diff --git a/app/src/main/res/layout/licenses.xml b/app/src/main/res/layout/licenses.xml new file mode 100644 index 0000000..6ca02ab --- /dev/null +++ b/app/src/main/res/layout/licenses.xml @@ -0,0 +1,20 @@ + + + + + + + diff --git a/app/src/main/res/layout/main.xml b/app/src/main/res/layout/main.xml index 0b1273b..15b1c90 100644 --- a/app/src/main/res/layout/main.xml +++ b/app/src/main/res/layout/main.xml @@ -1,161 +1,177 @@ - - - + android:orientation="vertical"> - - - + - - - - - - - + android:orientation="horizontal" + android:gravity="center_vertical" + android:layout_marginBottom="@dimen/space_lg"> - + - + + + - + - + + android:layout_height="wrap_content"> - + - + - + - + + android:layout_marginTop="@dimen/space_xs" + android:hint="@string/address_hint" + android:inputType="textUri" + android:importantForAutofill="no"/> + + - + android:text="@string/sub_pairing"/> + + + + + + + + + + + +