<?xml version="1.0" encoding="utf-8"?>
|
<RelativeLayout
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
xmlns:tools="http://schemas.android.com/tools"
|
android:layout_width="match_parent"
|
android:layout_height="match_parent"
|
android:id="@+id/mainActivityView"
|
>
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="match_parent"
|
android:orientation="vertical"
|
tools:context=".activity.MainActivity"
|
android:background="@color/colorWhite"
|
>
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="@dimen/h70"
|
android:orientation="horizontal"
|
android:background="#0099cc"
|
android:paddingLeft="@dimen/h13"
|
android:paddingRight="@dimen/h13"
|
>
|
<ImageView
|
android:focusable="false"
|
android:scaleType="centerInside"
|
android:src="@drawable/logo1"
|
android:layout_width="@dimen/h50"
|
android:layout_height="wrap_content" />
|
<TextView
|
android:layout_gravity="center_vertical"
|
android:layout_marginLeft="@dimen/w30"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="学院路学区室内"
|
android:textSize="@dimen/h30"
|
android:textColor="@color/white"
|
/>
|
<TextView
|
android:layout_width="0dp"
|
android:layout_height="1dp"
|
android:layout_weight="1"/>
|
|
<ImageView
|
android:id="@+id/online"
|
android:layout_width="@dimen/h50"
|
android:layout_height="wrap_content"
|
android:layout_gravity="center"
|
android:focusable="false"
|
android:scaleType="centerInside"
|
android:src="@drawable/u48" />
|
|
<ImageView
|
android:id="@+id/goto_setting"
|
android:layout_width="@dimen/h50"
|
android:layout_height="wrap_content"
|
android:layout_gravity="center"
|
android:layout_marginLeft="@dimen/w30"
|
android:focusable="false"
|
android:scaleType="centerInside"
|
android:src="@drawable/setting" />
|
<TextView
|
android:id="@+id/currentTime"
|
android:layout_gravity="center_vertical"
|
android:layout_marginLeft="@dimen/w30"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="2019-4-25 14:23:45"
|
android:textSize="@dimen/h22"
|
android:textColor="@color/white"
|
/>
|
</LinearLayout>
|
<RelativeLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:layout_weight="1">
|
<fragment
|
android:id="@+id/fragment_remote_camera"
|
android:name="com.basic.security.fragment.RemoteCameraFragment_"
|
android:layout_width="match_parent"
|
android:layout_height="match_parent"
|
/>
|
<fragment
|
android:id="@+id/fragment_home"
|
android:name="com.basic.security.fragment.HomeFragment_"
|
android:layout_width="match_parent"
|
android:layout_height="match_parent"
|
/>
|
<fragment
|
android:id="@+id/fragment_setting"
|
android:name="com.basic.security.fragment.SettingFragment_"
|
android:layout_width="match_parent"
|
android:layout_height="match_parent"
|
/>
|
<LinearLayout
|
android:id="@+id/face_buttons"
|
android:layout_width="wrap_content"
|
android:layout_alignParentBottom="true"
|
android:layout_alignParentRight="true"
|
android:layout_height="wrap_content"
|
android:layout_marginBottom="@dimen/h62"
|
android:layout_marginRight="@dimen/w116">
|
<RelativeLayout
|
android:layout_width="@dimen/w95"
|
android:layout_height="@dimen/h70">
|
<Button
|
android:layout_width="match_parent"
|
android:layout_height="match_parent"
|
android:textSize="@dimen/h13"
|
android:textColor="@color/white"
|
android:layout_gravity="center"
|
android:background="@drawable/blue_button"
|
android:text=""/>
|
<ImageView
|
android:id="@+id/getCameraImage"
|
android:layout_centerInParent="true"
|
android:layout_width="wrap_content"
|
android:layout_height="match_parent"
|
android:src="@drawable/u6"
|
android:layout_gravity="center"
|
android:focusable="false"
|
android:scaleType="centerInside"/>
|
|
</RelativeLayout>
|
|
<RelativeLayout
|
android:layout_marginLeft="@dimen/w48"
|
android:layout_width="@dimen/w95"
|
android:layout_height="@dimen/h70">
|
<Button
|
android:layout_width="match_parent"
|
android:layout_height="match_parent"
|
android:textSize="@dimen/h13"
|
android:textColor="@color/white"
|
android:layout_gravity="center"
|
android:background="@drawable/blue_button"
|
android:text=""/>
|
<ImageView
|
android:id="@+id/openDoor"
|
android:layout_width="wrap_content"
|
android:layout_height="match_parent"
|
android:src="@drawable/u5"
|
android:layout_gravity="center"
|
android:focusable="false"
|
android:layout_centerInParent="true"
|
android:scaleType="centerInside"/>
|
</RelativeLayout>
|
</LinearLayout>
|
</RelativeLayout>
|
</LinearLayout>
|
|
|
</RelativeLayout>
|