aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/res/layout
diff options
context:
space:
mode:
authorLena <lena@omega>2026-08-01 00:00:00 +0000
committerLena <lena@omega>2026-08-01 00:00:00 +0000
commit3037f9f8fdcc6cdadfe94ba248d10e647578cf53 (patch)
treee07e981d8d6b05c1a3dc836434d88bff7d76c703 /app/src/main/res/layout
parent70290eb3d79a5347cdc114daf6ce0b1b2e86528a (diff)
downloadscrcpy-android-3037f9f8fdcc6cdadfe94ba248d10e647578cf53.tar.gz
app: refine physical-device interface
Use target-safe capture defaults and remove redundant navigation and frame-rate controls.
Diffstat (limited to 'app/src/main/res/layout')
-rw-r--r--app/src/main/res/layout/mirror.xml40
-rw-r--r--app/src/main/res/layout/settings.xml71
2 files changed, 8 insertions, 103 deletions
diff --git a/app/src/main/res/layout/mirror.xml b/app/src/main/res/layout/mirror.xml
index d2355a8..0e1768a 100644
--- a/app/src/main/res/layout/mirror.xml
+++ b/app/src/main/res/layout/mirror.xml
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
-<!-- Video surface with optional target navigation and reconnect controls. -->
+<!-- Video surface with transient connection status. -->
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/root"
@@ -38,44 +38,6 @@
android:singleLine="true"
android:ellipsize="end"
android:text="@string/connecting"/>
-
-
- <Button
- android:id="@+id/nav_back"
- style="@style/Button.Secondary"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_marginStart="@dimen/space_sm"
- android:minWidth="0dp"
- android:minHeight="@dimen/touch_min"
- android:paddingHorizontal="@dimen/space_md"
- android:paddingVertical="@dimen/space_xs"
- android:text="@string/nav_back"/>
-
- <Button
- android:id="@+id/nav_home"
- style="@style/Button.Secondary"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_marginStart="@dimen/space_sm"
- android:minWidth="0dp"
- android:minHeight="@dimen/touch_min"
- android:paddingHorizontal="@dimen/space_md"
- android:paddingVertical="@dimen/space_xs"
- android:text="@string/nav_home"/>
-
- <Button
- android:id="@+id/nav_recents"
- style="@style/Button.Secondary"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_marginStart="@dimen/space_sm"
- android:minWidth="0dp"
- android:minHeight="@dimen/touch_min"
- android:paddingHorizontal="@dimen/space_md"
- android:paddingVertical="@dimen/space_xs"
- android:text="@string/nav_recents"/>
-
<Button
android:id="@+id/reconnect"
style="@style/Button.Secondary"
diff --git a/app/src/main/res/layout/settings.xml b/app/src/main/res/layout/settings.xml
index aa2f117..0b70de3 100644
--- a/app/src/main/res/layout/settings.xml
+++ b/app/src/main/res/layout/settings.xml
@@ -16,13 +16,19 @@
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
- android:layout_marginBottom="@dimen/space_lg"
android:text="@string/settings"
android:textColor="@color/on_surface"
android:textSize="22sp"
android:textStyle="bold"/>
<TextView
+ android:id="@+id/version"
+ style="@style/Caption"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_marginBottom="@dimen/space_lg"/>
+
+ <TextView
style="@style/Note"
android:layout_width="match_parent"
android:layout_height="wrap_content"
@@ -228,62 +234,6 @@
<LinearLayout
style="@style/Card"
android:layout_width="match_parent"
- android:layout_height="wrap_content">
-
- <TextView
- style="@style/SectionHeader"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="@string/max_fps"/>
-
- <RadioGroup
- android:id="@+id/max_fps"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:orientation="vertical">
-
- <RadioButton
- android:id="@+id/max_fps_0"
- style="@style/RadioOption"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="@string/max_fps_unlimited"/>
-
- <RadioButton
- android:id="@+id/max_fps_30"
- style="@style/RadioOption"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="@string/max_fps_30"/>
-
- <RadioButton
- android:id="@+id/max_fps_60"
- style="@style/RadioOption"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="@string/max_fps_60"/>
-
- <RadioButton
- android:id="@+id/max_fps_90"
- style="@style/RadioOption"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="@string/max_fps_90"/>
-
- <RadioButton
- android:id="@+id/max_fps_120"
- style="@style/RadioOption"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="@string/max_fps_120"/>
-
- </RadioGroup>
-
- </LinearLayout>
-
- <LinearLayout
- style="@style/Card"
- android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="0dp">
@@ -300,13 +250,6 @@
android:layout_height="wrap_content"
android:text="@string/clipboard_sync"/>
- <CheckBox
- android:id="@+id/show_status_bar"
- style="@style/RadioOption"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:text="@string/show_status_bar"/>
-
</LinearLayout>
<!-- Required, not decorative: the bundled SPAKE2 library is