hh_doctor_calling_layout.xml 4.39 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">




    <ImageView
        android:id="@+id/icon"
        android:scaleType="centerCrop"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:contentDescription="@string/hh_sdk_image_name" />



    <LinearLayout
        android:paddingTop="@dimen/dp_10"
        android:background="@color/hp_alpha_black"
        android:layout_above="@+id/bottom_layout"
        android:orientation="vertical"
        android:paddingBottom="@dimen/dp_10"
        android:layout_width="match_parent"
        android:layout_height="wrap_content">

        <TextView
            android:layout_gravity="center_horizontal"
            android:id="@+id/name"
            android:text="@string/hh_sdk_image_name"
            android:textSize="22sp"
            android:textColor="@android:color/white"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content" />



        <RelativeLayout
            android:layout_marginTop="@dimen/dp_6"
            android:layout_width="match_parent"
            android:layout_height="wrap_content">


            <TextView
                android:id="@+id/des"
                android:layout_centerHorizontal="true"
                android:text="@string/hh_av_accept_show_hint"
                android:textSize="13.0sp"
                android:textColor="@android:color/white"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content" />


            <com.hhmedic.android.sdk.uikit.widget.WaitView
                android:layout_width="wrap_content"
                android:layout_toEndOf="@+id/des"
                android:textColor="@android:color/white"
                android:layout_marginStart="@dimen/dp_6"
                android:id="@+id/wait"
                android:layout_height="wrap_content" />



        </RelativeLayout>






    </LinearLayout>



    <FrameLayout
        android:background="@color/hp_alpha_black"
        android:paddingLeft="@dimen/hh_horizontal_margin"
        android:paddingRight="@dimen/hh_horizontal_margin"
        android:id="@+id/bottom_layout"
        android:layout_alignParentBottom="true"
        android:layout_width="match_parent"
        android:layout_height="wrap_content">



        <RelativeLayout
            android:id="@+id/calling_bottom"
            android:paddingRight="@dimen/hh_callback_padding"
            android:paddingLeft="@dimen/hh_callback_padding"
            android:visibility="gone"
            android:layout_width="match_parent"
            android:layout_height="wrap_content">


            <Button
                android:id="@+id/refuse"
                android:drawableTop="@drawable/hh_av_refuse_btn_bg"
                style="@style/hh_av_btn"
                android:text="@string/hh_av_refuse_btn"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content" />


            <Button
                android:id="@+id/accept"
                android:text="@string/hh_av_accept_btn"
                android:layout_alignParentEnd="true"
                android:drawableTop="@drawable/hh_av_accept_btn_bg"
                style="@style/hh_av_btn"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content">
                <requestFocus/>
            </Button>


            <!-- 多人视频 中间状态 -->

            <Button
                android:visibility="gone"
                android:layout_centerHorizontal="true"
                android:id="@+id/cancel_multi"
                android:drawableTop="@drawable/hh_av_refuse_btn_bg"
                style="@style/hh_av_btn"
                android:text="@string/hh_cancel"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content" />


        </RelativeLayout>


        <Button
            android:layout_gravity="center_horizontal"
            android:id="@+id/cancel"
            android:drawableTop="@drawable/hh_av_refuse_btn_bg"
            style="@style/hh_av_btn"
            android:text="@string/hh_cancel"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content" />


    </FrameLayout>




</RelativeLayout>