<?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>
|