260 lines
8.7 KiB
XML
260 lines
8.7 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: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>
|
|
|
|
|
|
<com.example.defenseapplication.view.MyGSYVideoPlayerLive
|
|
android:id="@+id/exoPlayContextId"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="280dp"/>
|
|
|
|
|
|
<!-- 功能按钮区域 -->
|
|
<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="match_parent"
|
|
android:background="#FFFFFF"
|
|
android:gravity="center"
|
|
android:orientation="vertical"
|
|
android:visibility="gone">
|
|
|
|
<!-- 圆形控制台 -->
|
|
<RelativeLayout
|
|
android:layout_width="200dp"
|
|
android:layout_height="200dp">
|
|
|
|
<!-- 圆形背景 -->
|
|
<ImageView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent" />
|
|
|
|
<!-- 上按钮 -->
|
|
<ImageView
|
|
android:id="@+id/ivUp"
|
|
android:layout_width="108dp"
|
|
android:layout_height="108dp"
|
|
android:layout_alignParentTop="true"
|
|
android:layout_centerHorizontal="true"
|
|
android:layout_marginTop="8dp"
|
|
android:src="@drawable/selector_up"
|
|
android:clickable="true"
|
|
android:focusable="true" />
|
|
|
|
<!-- 下按钮 -->
|
|
<ImageView
|
|
android:id="@+id/ivDown"
|
|
android:layout_width="108dp"
|
|
android:layout_height="108dp"
|
|
android:layout_alignParentBottom="true"
|
|
android:layout_centerHorizontal="true"
|
|
android:layout_marginBottom="8dp"
|
|
android:src="@drawable/selector_down"
|
|
android:clickable="true"
|
|
android:focusable="true" />
|
|
|
|
<!-- 左按钮 -->
|
|
<ImageView
|
|
android:id="@+id/ivLeft"
|
|
android:layout_width="108dp"
|
|
android:layout_height="108dp"
|
|
android:layout_alignParentLeft="true"
|
|
android:layout_centerVertical="true"
|
|
android:layout_marginLeft="8dp"
|
|
android:src="@drawable/selector_left"
|
|
android:clickable="true"
|
|
android:focusable="true" />
|
|
|
|
<!-- 右按钮 -->
|
|
<ImageView
|
|
android:id="@+id/ivRight"
|
|
android:layout_width="108dp"
|
|
android:layout_height="108dp"
|
|
android:layout_alignParentRight="true"
|
|
android:layout_centerVertical="true"
|
|
android:layout_marginRight="8dp"
|
|
android:src="@drawable/selector_right"
|
|
android:clickable="true"
|
|
android:focusable="true" />
|
|
|
|
</RelativeLayout>
|
|
|
|
</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:id="@+id/xq"
|
|
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:layout_width="24dp"
|
|
android:layout_height="24dp"
|
|
android:src="@drawable/right_back"/>
|
|
|
|
</LinearLayout>
|
|
|
|
<!-- 告警图片列表 -->
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
android:id="@+id/alarmLogRecyclerView"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="200dp"
|
|
android:background="#FFFFFF"
|
|
android:paddingTop="8dp" />
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
</LinearLayout> |