blob: 0e1768a61b52fbc7fc050788f0d31968d7353f8c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
<?xml version="1.0" encoding="utf-8"?>
<!-- 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"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:ignore="MergeRootFrame">
<!-- Sized at runtime to the target's aspect ratio and centred, so the
black FrameLayout behind it shows as letterbox bars. -->
<SurfaceView
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:layout_margin="@dimen/space_sm"
android:orientation="horizontal"
android:gravity="center_vertical"
android:paddingHorizontal="@dimen/space_md"
android:paddingVertical="@dimen/space_sm"
android:background="@drawable/bg_status_pill">
<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/reconnect"
style="@style/Button.Secondary"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="@dimen/space_sm"
android:minHeight="@dimen/touch_min"
android:paddingHorizontal="@dimen/space_md"
android:paddingVertical="@dimen/space_xs"
android:text="@string/reconnect"
android:visibility="gone"/>
</LinearLayout>
</FrameLayout>
|