<?xml version="1.0" encoding="utf-8"?>
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
xmlns:tools="http://schemas.android.com/tools"
|
android:layout_width="match_parent"
|
android:layout_height="match_parent"
|
tools:context="com.ezviz.demo.streamctrl.OriginStreamControlActivity"
|
android:orientation="vertical"
|
android:padding="10dp"
|
android:background="@color/white">
|
|
<View
|
android:layout_width="match_parent"
|
android:layout_height="1dp"
|
android:background="@android:color/darker_gray"/>
|
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="设备信息"
|
android:textSize="16dp"
|
android:textStyle="bold"/>
|
|
<View
|
android:layout_width="match_parent"
|
android:layout_height="1dp"
|
android:background="@android:color/darker_gray"/>
|
|
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:orientation="vertical"
|
android:paddingLeft="50dp"
|
android:paddingRight="50dp">
|
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:orientation="horizontal"
|
android:gravity="center_horizontal">
|
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="设备序列号:"/>
|
|
<EditText
|
android:id="@+id/et_device_serial"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:text="C54348757"
|
android:gravity="center_horizontal"/>
|
|
</LinearLayout>
|
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:orientation="horizontal"
|
android:paddingLeft="30dp"
|
android:paddingRight="30dp">
|
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="设备通道号:"/>
|
|
<EditText
|
android:id="@+id/et_camera_no"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:text="1"
|
android:gravity="center_horizontal"/>
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
<View
|
android:layout_width="match_parent"
|
android:layout_height="1dp"
|
android:background="@android:color/darker_gray"/>
|
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="取流信息"
|
android:textSize="16dp"
|
android:textStyle="bold"/>
|
|
<View
|
android:layout_width="match_parent"
|
android:layout_height="1dp"
|
android:background="@android:color/darker_gray"/>
|
|
<RelativeLayout
|
android:layout_width="match_parent"
|
android:layout_height="0dp"
|
android:layout_weight="1">
|
|
<TextView
|
android:id="@+id/tv_file_path"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:textColor="@android:color/holo_red_light"/>
|
|
</RelativeLayout>
|
|
<View
|
android:layout_width="match_parent"
|
android:layout_height="1dp"
|
android:background="@android:color/darker_gray"/>
|
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="预览取流"
|
android:textSize="16dp"
|
android:textStyle="bold"/>
|
|
<View
|
android:layout_width="match_parent"
|
android:layout_height="1dp"
|
android:background="@android:color/darker_gray"/>
|
|
<RelativeLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content">
|
|
|
|
<LinearLayout
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:orientation="horizontal"
|
android:layout_centerHorizontal="true"
|
android:padding="20dp">
|
|
<Button
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="开始预览"
|
android:onClick="onclickStartPreview"/>
|
|
<View
|
android:layout_width="30dp"
|
android:layout_height="0dp"/>
|
|
<Button
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="结束预览"
|
android:onClick="onclickStopPreview"/>
|
|
<View
|
android:layout_width="30dp"
|
android:layout_height="0dp"/>
|
|
<Button
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="查看画面"
|
android:onClick="onClickViewPicture"/>
|
|
</LinearLayout>
|
|
</RelativeLayout>
|
|
<View
|
android:layout_width="match_parent"
|
android:layout_height="1dp"
|
android:background="@android:color/darker_gray"/>
|
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="回放取流"
|
android:textSize="16dp"
|
android:textStyle="bold"/>
|
|
<View
|
android:layout_width="match_parent"
|
android:layout_height="1dp"
|
android:background="@android:color/darker_gray"/>
|
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:orientation="vertical">
|
|
<TextView
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:text="时间格式形如:2020-04-13 15:30:25,0不可省略"
|
android:gravity="center"
|
android:textStyle="bold"/>
|
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:gravity="center_horizontal">
|
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="录像开始时间:"/>
|
|
<EditText
|
android:id="@+id/et_record_file_start_time"
|
android:layout_width="200dp"
|
android:layout_height="wrap_content"
|
android:text="2020-04-13 00:00:00"/>
|
|
</LinearLayout>
|
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:gravity="center_horizontal">
|
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="录像结束时间:"/>
|
|
<EditText
|
android:id="@+id/et_record_file_stop_time"
|
android:layout_width="200dp"
|
android:layout_height="wrap_content"
|
android:text="2020-04-13 23:59:59"/>
|
|
</LinearLayout>
|
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:orientation="horizontal"
|
android:padding="20dp"
|
android:gravity="center_horizontal">
|
|
<Button
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="开始回放"
|
android:onClick="onclickStartPlayback"/>
|
|
<View
|
android:layout_width="30dp"
|
android:layout_height="0dp"/>
|
|
<Button
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="结束回放"
|
android:onClick="onclickStopPlayback"/>
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
</LinearLayout>
|