fengche_dialog_notice.xml 5.5 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/fengche_sdk_notice_bg"
        android:layout_width="500dp"
        android:layout_height="320dp"
        android:layout_centerInParent="true"
        android:background="@drawable/fengche_sdk_notice_bg">

        <RelativeLayout
            android:id="@+id/fengche_sdk_notice_title"
            android:layout_width="490dp"
            android:layout_height="48dp"
            android:layout_marginStart="5dp"
            android:layout_marginEnd="5dp"
            android:background="@drawable/fengche_sdk_notice_title_bg">

            <TextView
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_centerInParent="true"
                android:text="公告"
                android:textColor="@android:color/white"
                android:textSize="20sp" />
        </RelativeLayout>

        <ImageView
            android:id="@+id/fengche_sdk_notice_no_content"
            android:layout_width="147dp"
            android:layout_height="121dp"
            android:layout_centerInParent="true"
            android:contentDescription="@string/fengche_image_content_des"
            android:scaleType="centerInside"
            android:src="@drawable/fengche_sdk_notice_no_content"
            android:visibility="gone" />

        <ListView
            android:id="@+id/fengche_sdk_notice_title_list_view"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:layout_below="@id/fengche_sdk_notice_title"
            android:layout_marginStart="5dp"
            android:layout_marginEnd="6dp"
            android:layout_marginBottom="15dp"
            android:divider="@null"
            android:scrollbars="none"
            android:visibility="gone" />

        <RelativeLayout
            android:id="@+id/fengche_notice_details"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:layout_below="@id/fengche_sdk_notice_title"
            android:layout_marginStart="5dp"
            android:layout_marginEnd="6dp"
            android:layout_marginBottom="15dp"
            android:visibility="gone">

            <LinearLayout
                android:layout_width="match_parent"
                android:layout_height="match_parent"
                android:orientation="vertical">

                <TextView
                    android:id="@+id/fengche_notice_title"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_gravity="center"
                    android:textColor="#333333"
                    android:textSize="14sp" />

                <LinearLayout
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_gravity="center"
                    android:layout_marginTop="10dp"
                    android:orientation="horizontal">

                    <TextView
                        android:id="@+id/fengche_notice_time"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:textColor="#999999"
                        android:textSize="10sp" />

                    <TextView
                        android:id="@+id/fengche_notice_author"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:layout_marginStart="10dp"
                        android:textColor="#999999"
                        android:textSize="10sp" />
                </LinearLayout>

                <WebView
                    android:id="@+id/fengche_notice_content"
                    android:layout_width="match_parent"
                    android:layout_height="match_parent"
                    android:layout_marginTop="10dp"
                    android:scrollbars="none"
                    android:textColor="#666666"
                    android:textSize="12sp" />
            </LinearLayout>

            <ImageButton
                android:id="@+id/fengche_notice_back_btn"
                android:layout_width="34dp"
                android:layout_height="34dp"
                android:layout_alignParentEnd="true"
                android:layout_alignParentBottom="true"
                android:layout_marginEnd="8dp"
                android:background="@android:color/transparent"
                android:contentDescription="@string/fengche_image_content_des"
                android:scaleType="centerInside"
                android:src="@drawable/fengche_sdk_notice_back" />
        </RelativeLayout>
    </RelativeLayout>

    <ImageButton
        android:id="@+id/fengche_notice_close_btn"
        android:layout_width="34dp"
        android:layout_height="34dp"
        android:layout_alignTop="@id/fengche_sdk_notice_bg"
        android:layout_alignEnd="@id/fengche_sdk_notice_bg"
        android:layout_marginTop="-12dp"
        android:layout_marginEnd="-10dp"
        android:background="@android:color/transparent"
        android:contentDescription="@string/fengche_image_content_des"
        android:scaleType="centerInside"
        android:src="@drawable/fengche_sdk_notice_close" />
</RelativeLayout>