diff options
| author | Lena <lena@omega> | 2026-08-01 00:00:00 +0000 |
|---|---|---|
| committer | Lena <lena@omega> | 2026-08-01 00:00:00 +0000 |
| commit | 852a8a00273c9128efeed0217a8e5d3fcd8bf780 (patch) | |
| tree | c72f959731fa3c7c809cf1a0222363b6c9c9b03b /app/src/debug/res | |
| parent | f379b93d52bf0dbd3816ec3f64d165314771d2a6 (diff) | |
| download | scrcpy-android-852a8a00273c9128efeed0217a8e5d3fcd8bf780.tar.gz | |
app: harden mirroring lifecycle and state
Diffstat (limited to 'app/src/debug/res')
| -rw-r--r-- | app/src/debug/res/layout/mirror.xml | 93 |
1 files changed, 0 insertions, 93 deletions
diff --git a/app/src/debug/res/layout/mirror.xml b/app/src/debug/res/layout/mirror.xml deleted file mode 100644 index 5d0e845..0000000 --- a/app/src/debug/res/layout/mirror.xml +++ /dev/null @@ -1,93 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- Debug Mirror layout: TextureView, the same top status bar as - production, plus a bottom-left stats overlay that screencap can - capture (target host, video/audio/texture-update counts, last - forwarded event). The TextureView path is used because emulators - don't composite SurfaceView's hardware layer into screencap. --> -<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" - android:layout_width="match_parent" - android:layout_height="match_parent" - android:background="#000000"> - - <TextureView - android:id="@+id/surface" - android:layout_width="match_parent" - android:layout_height="match_parent" - android:layout_gravity="center"/> - - <LinearLayout - android:id="@+id/status_bar" - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:layout_gravity="top" - android:orientation="horizontal" - android:gravity="center_vertical" - android:padding="8dp" - android:background="#a0000000"> - - <TextView - android:id="@+id/status_text" - android:layout_width="0dp" - android:layout_weight="1" - android:layout_height="wrap_content" - android:textColor="#ffffff" - android:textSize="14sp" - android:fontFamily="monospace" - android:singleLine="true" - android:ellipsize="end" - android:text="@string/connecting"/> - - <Button - android:id="@+id/record" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:layout_marginEnd="8dp" - android:text="@string/record"/> - - <Button - android:id="@+id/reconnect" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:text="@string/reconnect" - android:visibility="gone"/> - - </LinearLayout> - - <LinearLayout - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:layout_gravity="bottom|start" - android:orientation="vertical" - android:padding="16dp" - android:background="#a0000000"> - - <TextView - android:id="@+id/overlay_target" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:textColor="#ffffff" - android:textSize="16sp" - android:fontFamily="monospace" - android:text="target: ..."/> - - <TextView - android:id="@+id/overlay_stats" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:textColor="#aef0a0" - android:textSize="16sp" - android:fontFamily="monospace" - android:text="v=0 a=0"/> - - <TextView - android:id="@+id/overlay_event" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:textColor="#f0c060" - android:textSize="16sp" - android:fontFamily="monospace" - android:text="event: (idle)"/> - - </LinearLayout> - -</FrameLayout> |