hh_chat_mobile_controller_layout.xml 6.02 KB
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:id="@+id/bottom_control"
    android:layout_width="match_parent"
    android:layout_height="match_parent">


    <RelativeLayout
        android:id="@+id/bottom_menu_layout"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_alignParentBottom="true"
        android:background="@drawable/hh_av_bottom_bg"
        android:paddingLeft="@dimen/hh_horizontal_margin"
        android:paddingRight="@dimen/hh_horizontal_margin">


        <LinearLayout
            android:id="@+id/photos_layout"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_alignParentStart="true"
            android:gravity="center_horizontal"
            android:orientation="vertical">


            <View
                android:id="@+id/empty_view_for_bottom"
                android:layout_width="1dp"
                android:layout_height="100dp" />

            <com.hhmedic.android.sdk.module.video.widget.chat.ChatToolsView
                android:id="@+id/tools"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_marginBottom="20dp"
                android:visibility="gone" />


            <ImageView
                android:id="@+id/showTools"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_marginBottom="20dp"
                android:background="@drawable/hh_av_tools_bg"
                android:contentDescription="@string/hh_sdk_image_name"
                android:paddingStart="13dp"
                android:paddingEnd="13dp"
                android:src="@drawable/hp_avchat_tools_more" />

            <com.hhmedic.android.sdk.module.video.widget.chat.UploadView
                android:id="@+id/upload"
                android:layout_width="64dp"
                android:layout_height="64dp"
                android:layout_marginTop="14dp" />

            <Button
                android:id="@+id/photos"
                style="@style/hh_av_btn"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_marginTop="18dp"
                android:drawableTop="@drawable/hh_av_chat_voice_bg"
                android:text="@string/hp_video_camera_title" />


        </LinearLayout>


        <LinearLayout

            android:id="@+id/center"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_alignBottom="@+id/photos_layout"
            android:layout_centerHorizontal="true"
            android:gravity="center_horizontal"
            android:orientation="vertical">


            <TextView
                android:id="@+id/time_label"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_marginTop="@dimen/hh_vertical_large"
                android:textColor="@android:color/white"
                android:textSize="@dimen/hp_video_menu_text_font" />


            <Button

                android:id="@+id/hand_up"
                style="@style/hh_av_btn"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_marginTop="14dp"
                android:drawableTop="@drawable/hh_av_refuse_btn_bg"
                android:text="@string/hh_av_hangup_btn" />


        </LinearLayout>


        <LinearLayout
            android:id="@+id/switch_layout"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_alignBottom="@+id/photos_layout"
            android:layout_alignParentEnd="true"
            android:gravity="center_horizontal"
            android:orientation="vertical">


            <Button
                android:id="@+id/change_doctor"
                style="@style/hh_av_btn"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_marginBottom="4dp"
                android:drawableTop="@drawable/hh_av_chat_change_doctor_icon"
                android:text="@string/hh_av_change_doctor"
                android:textColor="@drawable/hh_av_btn_text_color" />


            <Button
                android:id="@+id/change"
                style="@style/hh_av_btn"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_marginTop="14dp"
                android:drawableTop="@drawable/hh_av_chat_change_camera_bg"
                android:text="@string/hh_av_change_camera"
                android:textColor="@drawable/hh_av_btn_text_color" />


            <Button
                android:id="@+id/showJob"
                style="@style/hh_av_btn"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:drawablePadding="2dp"
                android:text="@string/hp_doctor_job_title"
                android:textColor="@android:color/white"
                android:visibility="gone" />


        </LinearLayout>


    </RelativeLayout>


    <ImageView
        android:id="@+id/watermark"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_marginStart="@dimen/normal_margin"
        android:layout_marginTop="@dimen/hh_chat_water_layout_top"
        android:layout_marginEnd="122dp"
        android:contentDescription="@string/hh_sdk_image_name"
        android:scaleType="fitStart" />


    <com.hhmedic.android.sdk.module.video.widget.chat.ChatTipView
        android:id="@+id/hh_chat_tip"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_centerInParent="true" />

</RelativeLayout>