You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
752 lines
29 KiB
752 lines
29 KiB
<?xml version="1.0" encoding="utf-8"?>
|
|
<!--
|
|
Copyright (C) 2025 Rockchip Limited
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
you may not use this file except in compliance with the License.
|
|
You may obtain a copy of the License at
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
See the License for the specific language governing permissions and
|
|
limitations under the License.
|
|
-->
|
|
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:background="@color/black">
|
|
|
|
<TextView
|
|
android:id="@+id/tv_recognition"
|
|
android:layout_width="@dimen/size_100_dp"
|
|
android:layout_height="@dimen/size_48_dp"
|
|
android:layout_marginLeft="@dimen/size_10_dp"
|
|
android:layout_marginRight="@dimen/size_10_dp"
|
|
android:gravity="center_vertical"
|
|
android:text="Recognition"
|
|
android:textColor="@color/white"
|
|
android:textSize="@dimen/text_size_16_sp" />
|
|
|
|
<TextView
|
|
android:id="@+id/tv_help"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="@dimen/size_48_dp"
|
|
android:layout_marginLeft="@dimen/size_10_dp"
|
|
android:layout_marginRight="@dimen/size_10_dp"
|
|
android:layout_toRightOf="@+id/tv_recognition"
|
|
android:gravity="center_vertical"
|
|
android:text="Help"
|
|
android:textColor="@color/white"
|
|
android:textSize="@dimen/text_size_16_sp" />
|
|
|
|
<ImageView
|
|
android:id="@+id/iv_close"
|
|
android:layout_width="@dimen/size_48_dp"
|
|
android:layout_height="@dimen/size_48_dp"
|
|
android:layout_marginRight="@dimen/size_20_dp"
|
|
android:layout_toLeftOf="@+id/face_recognition_view"
|
|
android:padding="@dimen/size_16_dp"
|
|
android:src="@drawable/ic_close" />
|
|
|
|
<TextView
|
|
android:id="@+id/tv_title"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_above="@+id/ll_yaw_container"
|
|
android:layout_below="@+id/tv_recognition"
|
|
android:layout_alignParentLeft="true"
|
|
android:layout_marginRight="@dimen/size_20_dp"
|
|
android:layout_toLeftOf="@+id/face_recognition_view"
|
|
android:gravity="center"
|
|
android:text="RKDMS"
|
|
android:textColor="@color/blue_4990e2"
|
|
android:textSize="@dimen/text_size_66_sp"
|
|
android:textStyle="italic" />
|
|
|
|
<LinearLayout
|
|
android:id="@+id/ll_yaw_container"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_above="@+id/ll_eye_state_container"
|
|
android:layout_alignLeft="@+id/tv_title"
|
|
android:layout_alignRight="@+id/tv_title"
|
|
android:layout_marginTop="@dimen/size_20_dp"
|
|
android:orientation="horizontal">
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginLeft="@dimen/size_10_dp"
|
|
android:layout_marginRight="@dimen/size_10_dp"
|
|
android:text="Yaw"
|
|
android:textColor="@color/white"
|
|
android:textSize="@dimen/text_size_18_sp" />
|
|
|
|
<TextView
|
|
android:id="@+id/tv_yaw_value"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="@dimen/size_30_dp"
|
|
android:layout_marginRight="@dimen/size_10_dp"
|
|
android:layout_weight="1"
|
|
android:background="@drawable/text_border_bg"
|
|
android:gravity="center"
|
|
android:text="0.0"
|
|
android:textColor="@color/white"
|
|
android:textSize="@dimen/text_size_18_sp" />
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginRight="@dimen/size_10_dp"
|
|
android:text="Pitch"
|
|
android:textColor="@color/white"
|
|
android:textSize="@dimen/text_size_18_sp" />
|
|
|
|
<TextView
|
|
android:id="@+id/tv_pitch_value"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="@dimen/size_30_dp"
|
|
android:layout_marginRight="@dimen/size_10_dp"
|
|
android:layout_weight="1"
|
|
android:background="@drawable/text_border_bg"
|
|
android:gravity="center"
|
|
android:text="0.0"
|
|
android:textColor="@color/white"
|
|
android:textSize="@dimen/text_size_18_sp" />
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginLeft="@dimen/size_10_dp"
|
|
android:layout_marginRight="@dimen/size_10_dp"
|
|
android:text="Roll"
|
|
android:textColor="@color/white"
|
|
android:textSize="@dimen/text_size_18_sp" />
|
|
|
|
<TextView
|
|
android:id="@+id/tv_roll_value"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="@dimen/size_30_dp"
|
|
android:layout_marginRight="@dimen/size_10_dp"
|
|
android:layout_weight="1"
|
|
android:background="@drawable/text_border_bg"
|
|
android:gravity="center"
|
|
android:text="0.0"
|
|
android:textColor="@color/white"
|
|
android:textSize="@dimen/text_size_18_sp" />
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/ll_eye_state_container"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_above="@+id/ll_eye_state_value_container"
|
|
android:layout_alignLeft="@+id/tv_title"
|
|
android:layout_alignRight="@+id/tv_title"
|
|
android:layout_marginTop="@dimen/size_20_dp"
|
|
android:orientation="horizontal">
|
|
|
|
<TextView
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginLeft="@dimen/size_10_dp"
|
|
android:layout_marginRight="@dimen/size_10_dp"
|
|
android:layout_weight="1"
|
|
android:gravity="center"
|
|
android:paddingTop="@dimen/size_6_dp"
|
|
android:paddingBottom="@dimen/size_6_dp"
|
|
android:text="Pupil dilation"
|
|
android:textColor="@color/white"
|
|
android:textSize="@dimen/text_size_18_sp" />
|
|
|
|
|
|
<TextView
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginLeft="@dimen/size_10_dp"
|
|
android:layout_marginRight="@dimen/size_10_dp"
|
|
android:layout_weight="1"
|
|
android:gravity="center"
|
|
android:paddingTop="@dimen/size_6_dp"
|
|
android:paddingBottom="@dimen/size_6_dp"
|
|
android:text="Blink rate"
|
|
android:textColor="@color/white"
|
|
android:textSize="@dimen/text_size_18_sp" />
|
|
|
|
<TextView
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginLeft="@dimen/size_10_dp"
|
|
android:layout_marginRight="@dimen/size_10_dp"
|
|
android:layout_weight="1"
|
|
android:gravity="center"
|
|
android:paddingTop="@dimen/size_6_dp"
|
|
android:paddingBottom="@dimen/size_6_dp"
|
|
android:text="Blink duration"
|
|
android:textColor="@color/white"
|
|
android:textSize="@dimen/text_size_18_sp" />
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/ll_eye_state_value_container"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_above="@+id/ll_eye_title_container"
|
|
android:layout_alignLeft="@+id/tv_title"
|
|
android:layout_alignRight="@+id/tv_title"
|
|
android:orientation="horizontal">
|
|
|
|
<TextView
|
|
android:id="@+id/tv_pupil_value"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginLeft="@dimen/size_10_dp"
|
|
android:layout_marginRight="@dimen/size_10_dp"
|
|
android:layout_weight="1"
|
|
android:background="@drawable/text_border_bg"
|
|
android:gravity="center"
|
|
android:paddingTop="@dimen/size_6_dp"
|
|
android:paddingBottom="@dimen/size_6_dp"
|
|
android:text="0.0%"
|
|
android:textColor="@color/white"
|
|
android:textSize="@dimen/text_size_18_sp" />
|
|
|
|
|
|
<TextView
|
|
android:id="@+id/tv_blink_rate_value"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginLeft="@dimen/size_10_dp"
|
|
android:layout_marginRight="@dimen/size_10_dp"
|
|
android:layout_weight="1"
|
|
android:background="@drawable/text_border_bg"
|
|
android:gravity="center"
|
|
android:paddingTop="@dimen/size_6_dp"
|
|
android:paddingBottom="@dimen/size_6_dp"
|
|
android:text="12.0"
|
|
android:textColor="@color/white"
|
|
android:textSize="@dimen/text_size_18_sp" />
|
|
|
|
<com.rockchip.cameradms.view.GradientTextView
|
|
android:id="@+id/tv_blink_duration_value"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginLeft="@dimen/size_10_dp"
|
|
android:layout_marginRight="@dimen/size_10_dp"
|
|
android:layout_weight="1"
|
|
android:gravity="center"
|
|
android:paddingTop="@dimen/size_6_dp"
|
|
android:paddingBottom="@dimen/size_6_dp"
|
|
android:text="0.00 sec"
|
|
android:textColor="@color/white"
|
|
android:textSize="@dimen/text_size_18_sp" />
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/ll_eye_title_container"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_above="@+id/ll_eye_view_container"
|
|
android:layout_alignLeft="@+id/tv_title"
|
|
android:layout_alignRight="@+id/tv_title"
|
|
android:layout_marginTop="@dimen/size_20_dp"
|
|
android:orientation="horizontal">
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginLeft="@dimen/size_10_dp"
|
|
android:layout_marginRight="@dimen/size_10_dp"
|
|
android:layout_weight="1"
|
|
android:gravity="center"
|
|
android:text="Left Eye"
|
|
android:textColor="@color/white"
|
|
android:textSize="@dimen/text_size_18_sp" />
|
|
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="@dimen/size_30_dp"
|
|
android:layout_marginLeft="@dimen/size_10_dp"
|
|
android:layout_marginRight="@dimen/size_10_dp"
|
|
android:layout_weight="1"
|
|
android:gravity="center"
|
|
android:text="Right Eye"
|
|
android:textColor="@color/white"
|
|
android:textSize="@dimen/text_size_18_sp" />
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/ll_eye_view_container"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="@dimen/size_160_dp"
|
|
android:layout_above="@+id/ll_eye_yaw_container"
|
|
android:layout_alignLeft="@+id/tv_title"
|
|
android:layout_alignRight="@+id/tv_title"
|
|
android:layout_alignParentBottom="true"
|
|
android:layout_marginBottom="@dimen/size_20_dp"
|
|
android:orientation="horizontal">
|
|
|
|
<com.rockchip.cameradms.view.SimpleEyeView
|
|
android:id="@+id/iv_left_eye"
|
|
android:layout_width="0dp"
|
|
android:layout_height="match_parent"
|
|
android:layout_marginLeft="@dimen/size_10_dp"
|
|
android:layout_marginRight="@dimen/size_10_dp"
|
|
android:layout_weight="1" />
|
|
|
|
<com.rockchip.cameradms.view.SimpleEyeView
|
|
android:id="@+id/iv_right_eye"
|
|
android:layout_width="0dp"
|
|
android:layout_height="match_parent"
|
|
android:layout_marginLeft="@dimen/size_10_dp"
|
|
android:layout_marginRight="@dimen/size_10_dp"
|
|
android:layout_weight="1" />
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/ll_eye_yaw_container"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_above="@+id/ll_eye_xyz_container"
|
|
android:layout_alignLeft="@+id/tv_title"
|
|
android:layout_alignRight="@+id/tv_title"
|
|
android:layout_marginTop="@dimen/size_10_dp"
|
|
android:orientation="horizontal"
|
|
android:visibility="gone">
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginLeft="@dimen/size_10_dp"
|
|
android:layout_marginRight="@dimen/size_16_dp"
|
|
android:text="Yaw"
|
|
android:textColor="@color/white" />
|
|
|
|
<TextView
|
|
android:id="@+id/tv_left_eye_yaw_value"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="@dimen/size_30_dp"
|
|
android:layout_marginRight="@dimen/size_10_dp"
|
|
android:layout_weight="1"
|
|
android:background="@drawable/text_border_bg"
|
|
android:gravity="center"
|
|
android:text="11.7"
|
|
android:textColor="@color/white" />
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginRight="@dimen/size_16_dp"
|
|
android:text="Pitch"
|
|
android:textColor="@color/white" />
|
|
|
|
<TextView
|
|
android:id="@+id/tv_left_eye_pitch_value"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="@dimen/size_30_dp"
|
|
android:layout_marginRight="@dimen/size_10_dp"
|
|
android:layout_weight="1"
|
|
android:background="@drawable/text_border_bg"
|
|
android:gravity="center"
|
|
android:text="11.7"
|
|
android:textColor="@color/white" />
|
|
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginLeft="@dimen/size_10_dp"
|
|
android:layout_marginRight="@dimen/size_16_dp"
|
|
android:text="Yaw"
|
|
android:textColor="@color/white" />
|
|
|
|
<TextView
|
|
android:id="@+id/tv_right_eye_yaw_value"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="@dimen/size_30_dp"
|
|
android:layout_marginRight="@dimen/size_10_dp"
|
|
android:layout_weight="1"
|
|
android:background="@drawable/text_border_bg"
|
|
android:gravity="center"
|
|
android:text="11.7"
|
|
android:textColor="@color/white" />
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginRight="@dimen/size_16_dp"
|
|
android:text="Pitch"
|
|
android:textColor="@color/white" />
|
|
|
|
<TextView
|
|
android:id="@+id/tv_right_eye_pitch_value"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="@dimen/size_30_dp"
|
|
android:layout_marginRight="@dimen/size_10_dp"
|
|
android:layout_weight="1"
|
|
android:background="@drawable/text_border_bg"
|
|
android:gravity="center"
|
|
android:text="11.7"
|
|
android:textColor="@color/white" />
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/ll_eye_xyz_container"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_alignLeft="@+id/tv_title"
|
|
android:layout_alignRight="@+id/tv_title"
|
|
android:layout_alignParentBottom="true"
|
|
android:layout_marginTop="@dimen/size_10_dp"
|
|
android:layout_marginBottom="@dimen/size_20_dp"
|
|
android:orientation="horizontal"
|
|
android:visibility="gone">
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginLeft="@dimen/size_10_dp"
|
|
android:layout_marginRight="@dimen/size_16_dp"
|
|
android:text="X"
|
|
android:textColor="@color/white" />
|
|
|
|
<TextView
|
|
android:id="@+id/tv_left_eye_x_value"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="@dimen/size_30_dp"
|
|
android:layout_marginRight="@dimen/size_10_dp"
|
|
android:layout_weight="1"
|
|
android:background="@drawable/text_border_bg"
|
|
android:gravity="center"
|
|
android:text="11.7"
|
|
android:textColor="@color/white" />
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginRight="@dimen/size_16_dp"
|
|
android:text="Y"
|
|
android:textColor="@color/white" />
|
|
|
|
<TextView
|
|
android:id="@+id/tv_left_eye_y_value"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="@dimen/size_30_dp"
|
|
android:layout_marginRight="@dimen/size_10_dp"
|
|
android:layout_weight="1"
|
|
android:background="@drawable/text_border_bg"
|
|
android:gravity="center"
|
|
android:text="11.7"
|
|
android:textColor="@color/white" />
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginRight="@dimen/size_16_dp"
|
|
android:text="z"
|
|
android:textColor="@color/white" />
|
|
|
|
<TextView
|
|
android:id="@+id/tv_left_eye_z_value"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="@dimen/size_30_dp"
|
|
android:layout_marginRight="@dimen/size_10_dp"
|
|
android:layout_weight="1"
|
|
android:background="@drawable/text_border_bg"
|
|
android:gravity="center"
|
|
android:text="11.7"
|
|
android:textColor="@color/white" />
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginLeft="@dimen/size_10_dp"
|
|
android:layout_marginRight="@dimen/size_16_dp"
|
|
android:text="X"
|
|
android:textColor="@color/white" />
|
|
|
|
<TextView
|
|
android:id="@+id/tv_right_eye_x_value"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="@dimen/size_30_dp"
|
|
android:layout_marginRight="@dimen/size_10_dp"
|
|
android:layout_weight="1"
|
|
android:background="@drawable/text_border_bg"
|
|
android:gravity="center"
|
|
android:text="11.7"
|
|
android:textColor="@color/white" />
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginRight="@dimen/size_16_dp"
|
|
android:text="Y"
|
|
android:textColor="@color/white" />
|
|
|
|
<TextView
|
|
android:id="@+id/tv_right_eye_y_value"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="@dimen/size_30_dp"
|
|
android:layout_marginRight="@dimen/size_10_dp"
|
|
android:layout_weight="1"
|
|
android:background="@drawable/text_border_bg"
|
|
android:gravity="center"
|
|
android:text="11.7"
|
|
android:textColor="@color/white" />
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginRight="@dimen/size_16_dp"
|
|
android:text="z"
|
|
android:textColor="@color/white" />
|
|
|
|
<TextView
|
|
android:id="@+id/tv_right_eye_z_value"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="@dimen/size_30_dp"
|
|
android:layout_marginRight="@dimen/size_10_dp"
|
|
android:layout_weight="1"
|
|
android:background="@drawable/text_border_bg"
|
|
android:gravity="center"
|
|
android:text="11.7"
|
|
android:textColor="@color/white" />
|
|
</LinearLayout>
|
|
|
|
<com.rockchip.cameradms.view.Camera2SurfaceView
|
|
android:id="@+id/face_recognition_view"
|
|
android:layout_width="300dp"
|
|
android:layout_height="300dp"
|
|
android:layout_alignParentRight="true" />
|
|
|
|
<ImageView
|
|
android:id="@+id/iv_dms_recognition"
|
|
android:layout_width="300dp"
|
|
android:layout_height="300dp"
|
|
android:layout_alignParentRight="true"
|
|
android:scaleType="fitXY" />
|
|
|
|
<RelativeLayout
|
|
android:id="@+id/ll_content_top"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_alignLeft="@+id/face_recognition_view"
|
|
android:layout_alignRight="@+id/face_recognition_view"
|
|
android:gravity="center_horizontal">
|
|
|
|
<ImageView
|
|
android:id="@+id/iv_camera"
|
|
android:layout_width="@dimen/size_48_dp"
|
|
android:layout_height="@dimen/size_48_dp"
|
|
android:layout_marginTop="@dimen/size_12_dp"
|
|
android:layout_marginRight="@dimen/size_32_dp"
|
|
android:background="@drawable/icon_normal_bg"
|
|
android:padding="@dimen/size_10_dp"
|
|
android:src="@drawable/ic_camera" />
|
|
|
|
<TextView
|
|
android:id="@+id/tv_camera"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_below="@+id/iv_camera"
|
|
android:layout_alignLeft="@+id/iv_camera"
|
|
android:layout_alignRight="@+id/iv_camera"
|
|
android:layout_marginTop="@dimen/size_8_dp"
|
|
android:gravity="center_horizontal"
|
|
android:text="Camera"
|
|
android:textColor="@color/white"
|
|
android:textSize="@dimen/text_size_10_sp" />
|
|
|
|
<ImageView
|
|
android:id="@+id/iv_attentive"
|
|
android:layout_width="@dimen/size_48_dp"
|
|
android:layout_height="@dimen/size_48_dp"
|
|
android:layout_marginTop="@dimen/size_12_dp"
|
|
android:layout_marginRight="@dimen/size_32_dp"
|
|
android:layout_toRightOf="@+id/iv_camera"
|
|
android:background="@drawable/icon_normal_bg"
|
|
android:padding="@dimen/size_10_dp"
|
|
android:src="@drawable/ic_attentive" />
|
|
|
|
<TextView
|
|
android:id="@+id/tv_attentive"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_below="@+id/iv_attentive"
|
|
android:layout_alignLeft="@+id/iv_attentive"
|
|
android:layout_alignRight="@+id/iv_attentive"
|
|
android:layout_marginTop="@dimen/size_8_dp"
|
|
android:gravity="center_horizontal"
|
|
android:text="Attentive"
|
|
android:textColor="@color/white"
|
|
android:textSize="@dimen/text_size_10_sp" />
|
|
|
|
<ImageView
|
|
android:id="@+id/iv_awake"
|
|
android:layout_width="@dimen/size_48_dp"
|
|
android:layout_height="@dimen/size_48_dp"
|
|
android:layout_marginTop="@dimen/size_12_dp"
|
|
android:layout_marginRight="@dimen/size_32_dp"
|
|
android:layout_toRightOf="@+id/iv_attentive"
|
|
android:background="@drawable/icon_normal_bg"
|
|
android:padding="@dimen/size_10_dp"
|
|
android:src="@drawable/ic_awake" />
|
|
|
|
<TextView
|
|
android:id="@+id/tv_awake"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_below="@+id/iv_awake"
|
|
android:layout_alignLeft="@+id/iv_awake"
|
|
android:layout_alignRight="@+id/iv_awake"
|
|
android:layout_marginTop="@dimen/size_8_dp"
|
|
android:gravity="center_horizontal"
|
|
android:text="Awake"
|
|
android:textColor="@color/white"
|
|
android:textSize="@dimen/text_size_10_sp" />
|
|
|
|
<ImageView
|
|
android:id="@+id/iv_seatbelt"
|
|
android:layout_width="@dimen/size_48_dp"
|
|
android:layout_height="@dimen/size_48_dp"
|
|
android:layout_marginTop="@dimen/size_12_dp"
|
|
android:layout_marginRight="@dimen/size_32_dp"
|
|
android:layout_toRightOf="@+id/iv_awake"
|
|
android:background="@drawable/icon_normal_bg"
|
|
android:padding="@dimen/size_10_dp"
|
|
android:src="@drawable/ic_seatbelt"
|
|
android:visibility="gone" />
|
|
|
|
<TextView
|
|
android:id="@+id/tv_seatbelt"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_below="@+id/iv_seatbelt"
|
|
android:layout_alignLeft="@+id/iv_seatbelt"
|
|
android:layout_alignRight="@+id/iv_seatbelt"
|
|
android:layout_marginTop="@dimen/size_8_dp"
|
|
android:gravity="center_horizontal"
|
|
android:text="Seatbelt"
|
|
android:textColor="@color/white"
|
|
android:textSize="@dimen/text_size_10_sp"
|
|
android:visibility="gone" />
|
|
|
|
<ImageView
|
|
android:id="@+id/iv_phone"
|
|
android:layout_width="@dimen/size_48_dp"
|
|
android:layout_height="@dimen/size_48_dp"
|
|
android:layout_marginTop="@dimen/size_12_dp"
|
|
android:layout_marginRight="@dimen/size_32_dp"
|
|
android:layout_toRightOf="@+id/iv_seatbelt"
|
|
android:background="@drawable/icon_normal_bg"
|
|
android:padding="@dimen/size_10_dp"
|
|
android:src="@drawable/ic_phone" />
|
|
|
|
<TextView
|
|
android:id="@+id/tv_phone"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_below="@+id/iv_phone"
|
|
android:layout_alignLeft="@+id/iv_phone"
|
|
android:layout_alignRight="@+id/iv_phone"
|
|
android:layout_marginTop="@dimen/size_8_dp"
|
|
android:gravity="center_horizontal"
|
|
android:text="Phone"
|
|
android:textColor="@color/white"
|
|
android:textSize="@dimen/text_size_10_sp" />
|
|
|
|
<ImageView
|
|
android:id="@+id/iv_smoking"
|
|
android:layout_width="@dimen/size_48_dp"
|
|
android:layout_height="@dimen/size_48_dp"
|
|
android:layout_marginTop="@dimen/size_12_dp"
|
|
android:layout_toRightOf="@+id/iv_phone"
|
|
android:background="@drawable/icon_normal_bg"
|
|
android:padding="@dimen/size_10_dp"
|
|
android:src="@drawable/ic_smoking" />
|
|
|
|
<TextView
|
|
android:id="@+id/tv_smoking"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_below="@+id/iv_smoking"
|
|
android:layout_alignLeft="@+id/iv_smoking"
|
|
android:layout_alignRight="@+id/iv_smoking"
|
|
android:layout_marginTop="@dimen/size_8_dp"
|
|
android:gravity="center_horizontal"
|
|
android:text="Smoking"
|
|
android:textColor="@color/white"
|
|
android:textSize="@dimen/text_size_10_sp" />
|
|
|
|
</RelativeLayout>
|
|
|
|
|
|
<LinearLayout
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_alignLeft="@+id/face_recognition_view"
|
|
android:layout_centerVertical="true"
|
|
android:layout_marginLeft="@dimen/size_16_dp"
|
|
android:orientation="vertical">
|
|
|
|
<TextView
|
|
android:id="@+id/tv_fps"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginBottom="@dimen/size_12_dp"
|
|
android:text="FPS:30"
|
|
android:textColor="@color/teal_700"
|
|
android:textSize="@dimen/text_size_14_sp"
|
|
android:visibility="gone" />
|
|
|
|
<TextView
|
|
android:id="@+id/tv_real_driver"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginBottom="@dimen/size_12_dp"
|
|
android:text="Persona Name: Unknown"
|
|
android:textColor="@color/blue_4990e2"
|
|
android:textSize="@dimen/text_size_14_sp" />
|
|
|
|
<TextView
|
|
android:id="@+id/tv_person_id"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginBottom="@dimen/size_12_dp"
|
|
android:text="Persona ID: -1"
|
|
android:textColor="@color/blue_4990e2"
|
|
android:textSize="@dimen/text_size_14_sp" />
|
|
|
|
<TextView
|
|
android:id="@+id/tv_aoi"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginBottom="@dimen/size_12_dp"
|
|
android:text="AOI: None"
|
|
android:textColor="@color/blue_4990e2"
|
|
android:textSize="@dimen/text_size_14_sp"
|
|
android:visibility="gone" />
|
|
|
|
<TextView
|
|
android:id="@+id/tv_eye_mode"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginBottom="@dimen/size_12_dp"
|
|
android:text="Eye Mode: SACCADE"
|
|
android:textColor="@color/blue_4990e2"
|
|
android:textSize="@dimen/text_size_14_sp" />
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
</RelativeLayout> |