wxr
2023-04-11 cd70a2a8a2bdebf51259d8f39ed110a34b9be9e5
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"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    xmlns:app="http://schemas.android.com/apk/res-auto">
 
    <android.support.v7.widget.CardView android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:orientation="vertical"
        android:layout_marginBottom="20dp"
        android:layout_marginRight="5dp"
        android:layout_marginLeft="5dp">
 
        <RelativeLayout
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:background="@android:color/black">
 
            <TextureView
                android:id="@+id/texture_view_play_window"
                android:layout_width="match_parent"
                android:layout_height="match_parent"/>
 
            <TextView
                android:id="@+id/tv_camera_name"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:text="这是camera的名称"
                android:gravity="center"
                android:textColor="@android:color/white"
                android:singleLine="true"
                android:textSize="12dp"/>
 
            <ProgressBar
                android:id="@+id/pb_play_loading"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_centerInParent="true"/>
 
            <TextView
                android:id="@+id/tv_play_error"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:text="这是播放错误的提示"
                android:gravity="center"
                android:textColor="@android:color/holo_red_light"
                android:singleLine="true"
                android:textSize="14dp"
                android:layout_centerInParent="true"/>
 
        </RelativeLayout>
 
    </android.support.v7.widget.CardView>
 
</FrameLayout>