xj_camera_view_live.xml 5.9 KB
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent">

    <RelativeLayout
        android:id="@+id/video_container"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:layout_gravity="center_horizontal"
        android:background="@color/color_black"
        android:visibility="visible">

        <FrameLayout
            android:id="@+id/frame_parent"
            android:layout_width="match_parent"
            android:layout_height="wrap_content">

            <RelativeLayout
                android:id="@+id/video_parentview"
                android:layout_width="match_parent"
                android:layout_height="match_parent">

                <SurfaceView
                    android:id="@+id/VideoSurfaceView"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:fitsSystemWindows="true" />

                <ImageView
                    android:id="@+id/img_background"
                    android:layout_width="match_parent"
                    android:layout_height="match_parent"
                    android:layout_centerInParent="true"
                    android:scaleType="fitXY"
                    android:src="@drawable/no_connect"
                    android:visibility="gone" />

                <ImageView
                    android:id="@+id/iv_preview_start"
                    android:layout_width="@dimen/public_common_50dp"
                    android:layout_height="@dimen/public_common_50dp"
                    android:layout_centerInParent="true"
                    android:src="@drawable/public_btn_preview_start" />

                <ImageView
                    android:id="@+id/iv_preview_stop"
                    android:layout_width="@dimen/public_common_50dp"
                    android:layout_height="@dimen/public_common_50dp"
                    android:layout_centerInParent="true"
                    android:src="@drawable/public_btn_preview_stop"
                    android:visibility="gone" />
            </RelativeLayout>

        </FrameLayout>


        <RelativeLayout
            android:id="@+id/video_opt_layout"
            android:layout_width="match_parent"
            android:layout_height="match_parent">

            <LinearLayout
                android:id="@+id/layout_right_temp"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_alignParentEnd="true"
                android:layout_margin="@dimen/public_common_8dp"
                android:background="@drawable/public_liveplay_icons_bg">

                <ImageView
                    android:id="@+id/record_redpoint"
                    android:layout_width="15dp"
                    android:layout_height="15dp"
                    android:layout_margin="@dimen/public_common_8dp"
                    android:background="@drawable/public_notify_unread_messages"
                    android:visibility="gone" />

                <TextView
                    android:id="@+id/record_redpoint_tv"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_marginTop="@dimen/public_common_8dp"
                    android:text="@string/public_record_redpoint_text"
                    android:textColor="@color/public_color_white"
                    android:textSize="@dimen/public_font_12sp"
                    android:visibility="gone" />

                <ImageView
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_margin="@dimen/public_common_8dp"
                    android:background="@drawable/icon_mode_wifi" />
            </LinearLayout>

            <LinearLayout
                android:id="@+id/layout_switch_camera"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_below="@+id/layout_right_temp"
                android:layout_alignParentEnd="true"
                android:layout_marginRight="@dimen/public_common_8dp"
                android:background="@drawable/public_liveplay_icons_bg"
                android:visibility="gone">

                <ImageView
                    android:id="@+id/iv_switch_camera"
                    android:layout_width="@dimen/public_common_34dp"
                    android:layout_height="@dimen/public_common_34dp"
                    android:background="@drawable/icon_switch_camera_front" />

            </LinearLayout>

            <ImageView
                android:id="@+id/watermark"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_marginStart="@dimen/public_common_10dp"
                android:layout_marginTop="@dimen/public_common_10dp"
                android:background="@drawable/public_app_watermark_aicarlife" />

            <RelativeLayout
                android:id="@+id/video_change_orientation"
                android:layout_width="31dp"
                android:layout_height="35dp"
                android:layout_alignParentRight="true"
                android:layout_alignParentBottom="true"
                android:layout_marginRight="4dp"
                android:layout_marginBottom="0dp">

                <ImageView
                    android:id="@+id/img_full_screen"
                    android:layout_width="25dp"
                    android:layout_height="25dp"
                    android:layout_centerInParent="true"
                    android:background="@drawable/video_full_open" />
            </RelativeLayout>

        </RelativeLayout>

    </RelativeLayout>
</RelativeLayout>