fengche_dialog_agreement.xml 3.2 KB
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="379dp"
    android:layout_height="284dp"
    android:layout_gravity="center"
    android:background="@drawable/fengche_sdk_find_bg">

    <RelativeLayout
        android:id="@+id/fengche_agreement_title_layout"
        android:layout_width="wrap_content"
        android:layout_height="35dp"
        android:layout_alignParentStart="true"
        android:layout_alignParentTop="true"
        android:layout_marginStart="30dp"
        android:layout_marginTop="18dp">

        <ImageView
            android:id="@+id/fengche_sdk_rest_psw_logo"
            android:layout_width="134dp"
            android:layout_height="35dp"
            android:contentDescription="@string/fengche_image_content_des"
            android:scaleType="centerInside"
            android:src="@drawable/fengche_sdk_login_title" />

        <View
            android:id="@+id/fengche_sdk_rest_psw_divider"
            android:layout_width="1px"
            android:layout_height="20dp"
            android:layout_centerVertical="true"
            android:layout_marginStart="10dp"
            android:layout_toEndOf="@id/fengche_sdk_rest_psw_logo"
            android:background="#838281" />

        <TextView
            android:id="@+id/fengche_agreement_title"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_centerVertical="true"
            android:layout_marginStart="10dp"
            android:layout_toEndOf="@id/fengche_sdk_rest_psw_divider"
            android:text="@string/fengche_agreement_title"
            android:textColor="#838281"
            android:textSize="15sp" />

        <ImageButton
            android:id="@+id/fengche_sdk_agreement_close"
            android:layout_width="30dp"
            android:layout_height="30dp"
            android:layout_alignParentTop="true"
            android:layout_alignParentEnd="true"
            android:layout_marginEnd="17dp"
            android:background="@android:color/transparent"
            android:contentDescription="@string/fengche_image_content_des"
            android:padding="5dp"
            android:scaleType="centerInside"
            android:src="@drawable/fengche_sdk_login_close_btn" />
    </RelativeLayout>

    <RelativeLayout
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:layout_below="@id/fengche_agreement_title_layout"
        android:layout_marginStart="28dp"
        android:layout_marginTop="18dp"
        android:layout_marginEnd="28dp"
        android:layout_marginBottom="28dp"
        android:background="@drawable/fengche_shape_agreement_web">

        <ScrollView
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:layout_margin="1dp"
            android:scrollbars="none">

            <WebView
                android:id="@+id/fengche_agreement_web_view"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:background="@android:color/transparent" />
        </ScrollView>
    </RelativeLayout>
</RelativeLayout>