<?xml version="1.0" encoding="utf-8"?>
|
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
xmlns:tools="http://schemas.android.com/tools"
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
android:id="@+id/activity_main"
|
android:layout_width="match_parent"
|
android:layout_height="match_parent"
|
android:background="@color/colorBackground"
|
tools:context="com.bsk.zhangbo.demoforbsk.cn.com.basic.face.android.ui.MainActivity">
|
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="match_parent"
|
android:orientation="vertical"
|
>
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="0dp"
|
android:orientation="vertical"
|
android:paddingLeft="@dimen/w2dp"
|
android:paddingRight="@dimen/w2dp"
|
android:layout_weight="1"
|
>
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="0dp"
|
android:layout_weight="1"
|
android:orientation="vertical"
|
>
|
<RelativeLayout
|
android:layout_width="match_parent"
|
android:layout_height="match_parent"
|
android:background="@color/colorRed"
|
>
|
<SurfaceView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:id="@+id/surveillance_enter_camera"
|
/>
|
<RelativeLayout
|
android:layout_width="match_parent"
|
android:layout_height="@dimen/h50dp"
|
android:layout_alignParentBottom="true"
|
android:background="#40000000"
|
>
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_centerVertical="true"
|
android:textSize="@dimen/w14dp"
|
android:textColor="@android:color/white"
|
android:layout_alignParentRight="true"
|
android:background="@drawable/surface_info_bcg"
|
android:text="摄像机进"
|
android:layout_marginRight="@dimen/w12dp"/>
|
</RelativeLayout>
|
</RelativeLayout>
|
</LinearLayout>
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="2dp"
|
android:orientation="vertical"
|
/>
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="0dp"
|
android:layout_weight="1"
|
android:orientation="vertical"
|
>
|
<RelativeLayout
|
android:layout_width="match_parent"
|
android:layout_height="match_parent"
|
android:layout_weight="1"
|
android:layout_marginLeft="@dimen/w2dp"
|
>
|
<SurfaceView
|
android:id="@+id/surveillance_exit_camera"
|
android:layout_width="match_parent"
|
android:layout_height="match_parent"
|
/>
|
<RelativeLayout
|
android:layout_width="match_parent"
|
android:layout_height="@dimen/h50dp"
|
android:layout_alignParentBottom="true"
|
android:background="#40000000">
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_centerVertical="true"
|
android:textSize="@dimen/w14dp"
|
android:textColor="@android:color/white"
|
android:layout_alignParentRight="true"
|
android:background="@drawable/surface_info_bcg"
|
android:text="摄像机出"
|
android:layout_marginRight="@dimen/w12dp"/>
|
</RelativeLayout>
|
</RelativeLayout>
|
</LinearLayout>
|
</LinearLayout>
|
<RelativeLayout
|
android:layout_width="match_parent"
|
android:layout_height="@dimen/h400dp"
|
android:orientation="vertical"
|
>
|
<!--app:tabMaxWidth="@dimen/view_size_58" 设置tab的大小-->
|
<android.support.design.widget.TabLayout
|
android:id="@+id/tab_layout"
|
android:layout_width="match_parent"
|
android:layout_height="@dimen/h70dp"
|
android:layout_alignParentBottom="true"
|
android:background="@color/colorPrimary"
|
app:tabIndicatorHeight="@dimen/view_size_0"
|
app:tabSelectedTextColor="#cccccc"
|
app:tabTextColor="@android:color/white"
|
app:tabTextAppearance="@style/MyTabLayoutTextAppearance"
|
app:tabMaxWidth="0dp"
|
app:tabGravity="fill"
|
app:tabMode="fixed"
|
>
|
</android.support.design.widget.TabLayout>
|
<android.support.v4.view.ViewPager
|
android:id="@+id/viewpager"
|
android:layout_width="match_parent"
|
android:layout_height="match_parent"
|
android:layout_above="@+id/tab_layout"
|
/>
|
</RelativeLayout>
|
</LinearLayout>
|
|
</RelativeLayout>
|