349 lines
13 KiB
XML
349 lines
13 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:background="#F5F6F6"
|
|
android:name=".liveVideo.LiveVideoActivity"
|
|
android:configChanges="orientation|screenSize|keyboardHidden"
|
|
android:screenOrientation="portrait"
|
|
android:orientation="vertical">
|
|
|
|
<!-- 顶部导航栏 -->
|
|
<LinearLayout
|
|
android:id="@+id/topBar"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="56dp"
|
|
android:background="#FFFFFF"
|
|
android:gravity="center_vertical"
|
|
android:orientation="horizontal"
|
|
android:paddingLeft="16dp"
|
|
android:paddingRight="16dp">
|
|
|
|
<ImageView
|
|
android:id="@+id/btnBack"
|
|
android:layout_width="24dp"
|
|
android:layout_height="24dp"
|
|
android:background="@drawable/back"/>
|
|
|
|
<TextView
|
|
android:id="@+id/tvTitle"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:gravity="center"
|
|
android:text="@string/smart_device_a1"
|
|
android:textSize="16sp"
|
|
android:textStyle="bold" />
|
|
|
|
<ImageView
|
|
android:id="@+id/ivMenu"
|
|
android:layout_width="24dp"
|
|
android:layout_height="24dp"
|
|
android:src="@drawable/settings" />
|
|
|
|
</LinearLayout>
|
|
|
|
<!-- 视频播放区域 -->
|
|
<chuangyuan.ycj.videolibrary.widget.VideoPlayerView
|
|
android:id="@+id/exoPlayContextId"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="250dp"
|
|
android:background="@android:color/transparent"/>
|
|
|
|
<!-- 功能按钮区域 -->
|
|
<LinearLayout
|
|
android:id="@+id/functionBar"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="120dp"
|
|
android:background="#FFFFFF"
|
|
android:gravity="center"
|
|
android:orientation="horizontal">
|
|
|
|
<LinearLayout
|
|
android:id="@+id/llVoice"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:gravity="center"
|
|
android:orientation="vertical">
|
|
|
|
<ImageView
|
|
android:id="@+id/ivVoice"
|
|
android:layout_width="42dp"
|
|
android:layout_height="42dp"
|
|
android:src="@drawable/voice" />
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="8dp"
|
|
android:text="@string/voice"
|
|
android:textSize="14sp"
|
|
android:textColor="@color/ic_normal"/>
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/llLight"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:gravity="center"
|
|
android:orientation="vertical">
|
|
|
|
<ImageView
|
|
android:id="@+id/ivLight"
|
|
android:layout_width="42dp"
|
|
android:layout_height="42dp"
|
|
android:src="@drawable/light_on" />
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="8dp"
|
|
android:text="@string/light"
|
|
android:textSize="14sp"
|
|
android:textColor="@color/ic_normal"/>
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/llRecord"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:gravity="center"
|
|
android:orientation="vertical">
|
|
|
|
<ImageView
|
|
android:id="@+id/ivRecord"
|
|
android:layout_width="42dp"
|
|
android:layout_height="42dp"
|
|
android:src="@drawable/copy"/>
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="8dp"
|
|
android:text="@string/control"
|
|
android:textSize="14sp"
|
|
android:textColor="@color/ic_normal"/>
|
|
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
<!-- 控制台区域(录制模式下显示) -->
|
|
<LinearLayout
|
|
android:id="@+id/consoleBar"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="200dp"
|
|
android:background="#FFFFFF"
|
|
android:gravity="center"
|
|
android:orientation="vertical"
|
|
android:visibility="gone">
|
|
|
|
<!-- 控制台图片 -->
|
|
<ImageView
|
|
android:id="@+id/ivConsole"
|
|
android:layout_width="160dp"
|
|
android:layout_height="160dp"
|
|
android:src="@drawable/console" />
|
|
|
|
</LinearLayout>
|
|
|
|
<!-- 告警日志区域 -->
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="16dp"
|
|
android:background="#FFFFFF">
|
|
|
|
<LinearLayout
|
|
android:id="@+id/llAlarmLog"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical"
|
|
android:padding="16dp">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal"
|
|
android:gravity="center_vertical">
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/alarm_log_title"
|
|
android:textColor="@color/black"
|
|
android:textSize="16dp"
|
|
android:textStyle="bold" />
|
|
<TextView
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1" />
|
|
<ImageView
|
|
android:id="@+id/xq"
|
|
android:layout_width="24dp"
|
|
android:layout_height="24dp"
|
|
android:src="@drawable/right_back"/>
|
|
|
|
</LinearLayout>
|
|
|
|
<!-- 告警图片列表 -->
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="16dp"
|
|
android:orientation="horizontal">
|
|
|
|
<LinearLayout
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:orientation="vertical"
|
|
android:paddingRight="8dp">
|
|
|
|
<RelativeLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="80dp">
|
|
|
|
<ImageView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:scaleType="centerCrop"
|
|
android:src="@drawable/img" />
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_alignParentRight="true"
|
|
android:layout_alignParentBottom="true"
|
|
android:background="#000000"
|
|
android:padding="2dp"
|
|
android:text="60s"
|
|
android:textColor="#FFFFFF"
|
|
android:textSize="10sp" />
|
|
|
|
</RelativeLayout>
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="4dp"
|
|
android:text="@string/intrusion_detected"
|
|
android:textColor="@color/black"
|
|
android:textSize="14sp"
|
|
android:textStyle="bold" />
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="03-11"
|
|
android:textColor="@color/ic_normal"
|
|
android:textSize="12sp" />
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:orientation="vertical"
|
|
android:paddingLeft="4dp"
|
|
android:paddingRight="4dp">
|
|
|
|
<RelativeLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="80dp">
|
|
|
|
<ImageView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:scaleType="centerCrop"
|
|
android:src="@drawable/img" />
|
|
|
|
<ImageView
|
|
android:layout_width="20dp"
|
|
android:layout_height="20dp"
|
|
android:layout_alignParentRight="true"
|
|
android:layout_alignParentBottom="true"
|
|
android:src="@drawable/album" />
|
|
|
|
</RelativeLayout>
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="4dp"
|
|
android:text="@string/intrusion_detected"
|
|
android:textColor="@color/black"
|
|
android:textSize="14sp"
|
|
android:textStyle="bold" />
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="03-11"
|
|
android:textColor="@color/ic_normal"
|
|
android:textSize="12sp" />
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:orientation="vertical"
|
|
android:paddingLeft="8dp">
|
|
|
|
<RelativeLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="80dp">
|
|
|
|
<ImageView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:scaleType="centerCrop"
|
|
android:src="@drawable/img" />
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_alignParentRight="true"
|
|
android:layout_alignParentBottom="true"
|
|
android:background="#000000"
|
|
android:padding="2dp"
|
|
android:text="60s"
|
|
android:textColor="#FFFFFF"
|
|
android:textSize="10sp" />
|
|
|
|
</RelativeLayout>
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="4dp"
|
|
android:text="@string/intrusion_detected"
|
|
android:textColor="@color/black"
|
|
android:textSize="14sp"
|
|
android:textStyle="bold" />
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="03-11"
|
|
android:textColor="@color/ic_normal"
|
|
android:textSize="12sp" />
|
|
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
</LinearLayout> |