rbgame_fragment_welfare.xml 3.6 KB
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent">

    <RelativeLayout
        android:layout_width="match_parent"
        android:layout_height="match_parent">

        <RelativeLayout
            android:id="@+id/rlTitle"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_marginTop="20dp"
            android:layout_marginBottom="15dp">

            <ImageView
                android:id="@+id/ivNextBack"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_centerVertical="true"
                android:layout_marginStart="10dp"
                android:padding="8dp"
                android:src="@drawable/rbgame_ic_back_arrow"
                android:visibility="gone" />

            <TextView
                android:id="@+id/tvTitle"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_centerHorizontal="true"
                android:layout_centerVertical="true"
                android:layout_gravity="center_horizontal"
                android:text="礼包"
                android:textColor="#ff333333"
                android:textSize="18dp"
                android:textStyle="bold"
                tools:ignore="HardcodedText,SpUsage" />

        </RelativeLayout>

        <com.jmhc.rbgame.ui.widget.SwipeFlushView
            android:id="@+id/swipeRefresh"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_above="@+id/btnMyWelfare"
            android:layout_below="@+id/rlTitle"
            android:layout_marginStart="25dp"
            android:layout_marginEnd="25dp">

            <ListView
                android:id="@+id/listView"
                android:background="#ffffff"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:divider="#00000000"
                android:dividerHeight="6dp"
                android:scrollbars="none" />

        </com.jmhc.rbgame.ui.widget.SwipeFlushView>

        <TextView
            android:id="@+id/btnMyWelfare"
            android:layout_width="match_parent"
            android:layout_height="@dimen/button_height"
            android:layout_alignParentBottom="true"
            android:layout_marginStart="25dp"
            android:layout_marginTop="15dp"
            android:layout_marginEnd="25dp"
            android:layout_marginBottom="20dp"
            android:background="@drawable/rbgame_btn_shape_red"
            android:gravity="center"
            android:text="我的礼包"
            android:textColor="#ffffffff"
            android:textSize="18sp"
            tools:ignore="HardcodedText,SpUsage" />

    </RelativeLayout>


    <include
        layout="@layout/rbgame_dialog_loading"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:layout_gravity="center"
        android:visibility="gone" />

    <TextView
        android:id="@+id/tvNoData"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_gravity="center"
        android:text="暂无礼包"
        android:textColor="#333333"
        android:textSize="13dp"
        android:visibility="gone"
        tools:ignore="HardcodedText" />

</FrameLayout>