dialog_float_gone.xml 2.5 KB
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
              android:layout_width="wrap_content"
                android:background="#ffffff"
              android:layout_height="wrap_content">
<TextView
    android:id="@+id/text1"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_centerHorizontal="true"
    android:layout_marginTop="10dp"
    android:text="翻一翻隐藏/显示小图标"
    android:textSize="16dp"
    android:textColor="#FF6905"
    />
    <ImageView
        android:id="@+id/image_animation"
        android:layout_below="@+id/text1"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_marginTop="20dp"
        android:layout_centerHorizontal="true"
        />
    <ImageView
        android:layout_below="@+id/image_animation"
        android:id="@+id/image_gone"
        android:layout_width="20dp"
        android:layout_height="20dp"
        android:src="@drawable/wancms_gone_img1"
        android:layout_marginLeft="10dp"
        />
    <TextView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_below="@+id/image_animation"
        android:layout_toRightOf="@id/image_gone"
        android:text="不再显示" />
    <View android:layout_width="match_parent"
          android:layout_height="1dp"
          android:background="#f5f5f5"
        android:layout_below="@+id/image_gone"
          android:layout_marginTop="10dp"/>
    <LinearLayout
        android:layout_below="@+id/image_gone"
        android:layout_marginTop="11dp"
        android:orientation="horizontal"
        android:layout_width="match_parent"
        android:layout_height="50dp"
        >
<TextView
    android:id="@+id/float_dialog_cancel"
    android:text="取消"
    android:gravity="center"
    android:layout_width="0dp"
    android:layout_height="match_parent"
    android:layout_weight="1"
    />
        <View
            android:background="#f5f5f5"
            android:layout_width="1dp"
            android:layout_height="match_parent"
            />
        <TextView
            android:id="@+id/float_dialog_hide"
            android:text="隐藏"
            android:layout_width="0dp"
            android:gravity="center"
            android:textColor="#FF6905"
            android:layout_height="match_parent"
            android:layout_weight="1"
            />
    </LinearLayout>
</RelativeLayout>