244 lines
11 KiB
XML
244 lines
11 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<androidx.swiperefreshlayout.widget.SwipeRefreshLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:fresco="http://schemas.android.com/apk/res-auto"
|
|
android:id="@+id/channel_refresh"
|
|
android:layout_width="match_parent"
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
tools:viewBindingIgnore="true"
|
|
android:layout_height="wrap_content">
|
|
<RelativeLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:orientation="vertical">
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="327dp"
|
|
android:layout_alignParentTop="true"
|
|
android:background="@drawable/bg_dibu"
|
|
android:orientation="vertical">
|
|
<LinearLayout
|
|
android:id="@+id/daka_rank_header_layout"
|
|
android:layout_width="312dp"
|
|
android:layout_height="29dp"
|
|
android:layout_centerHorizontal="true"
|
|
android:layout_gravity="center_horizontal"
|
|
android:layout_marginTop="20dp"
|
|
android:background="@drawable/shape_daka_rank_frame"
|
|
android:orientation="horizontal"
|
|
android:weightSum="4">
|
|
|
|
<TextView
|
|
android:id="@+id/daka_rank_header_day"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_weight="1"
|
|
android:gravity="center"
|
|
android:text="日榜"
|
|
android:textColor="@android:color/white"
|
|
android:textSize="14sp" />
|
|
|
|
<TextView
|
|
android:id="@+id/daka_rank_header_week"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_weight="1"
|
|
android:gravity="center"
|
|
android:text="周榜"
|
|
android:textColor="@android:color/white"
|
|
android:textSize="14sp" />
|
|
|
|
<TextView
|
|
android:id="@+id/daka_rank_header_month"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_weight="1"
|
|
android:background="@drawable/shape_daka_rank_middle"
|
|
android:gravity="center"
|
|
android:text="月榜"
|
|
android:textColor="@android:color/white"
|
|
android:textSize="14sp" />
|
|
|
|
<TextView
|
|
android:id="@+id/daka_rank_header_total"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_weight="1"
|
|
android:gravity="center"
|
|
android:text="总榜"
|
|
android:textColor="@android:color/white"
|
|
android:textSize="14sp" />
|
|
|
|
</LinearLayout>
|
|
|
|
<RelativeLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="208dp"
|
|
android:gravity="center_vertical">
|
|
|
|
<LinearLayout
|
|
android:id="@+id/daka_rank_second_layout"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_centerHorizontal="true"
|
|
android:layout_marginRight="37dp"
|
|
android:layout_marginTop="37dp"
|
|
android:layout_toLeftOf="@+id/daka_rank_first_layout"
|
|
android:gravity="center_horizontal"
|
|
android:orientation="vertical">
|
|
|
|
<FrameLayout
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content">
|
|
|
|
<ImageView
|
|
android:layout_width="33dp"
|
|
android:layout_height="17dp"
|
|
android:layout_gravity="center_horizontal"
|
|
android:src="@drawable/ic_ranking2" />
|
|
|
|
<com.facebook.drawee.view.SimpleDraweeView
|
|
android:id="@+id/daka_rank_second_photo"
|
|
android:layout_width="55dp"
|
|
android:layout_height="55dp"
|
|
android:layout_marginTop="15dp"
|
|
fresco:placeholderImage="@color/mainBg"
|
|
fresco:roundAsCircle="true"
|
|
fresco:roundingBorderColor="#C6D3E2"
|
|
fresco:roundingBorderWidth="2dp" />
|
|
</FrameLayout>
|
|
|
|
<TextView
|
|
android:id="@+id/daka_rank_second_name"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="5dp"
|
|
android:text=""
|
|
android:textColor="@android:color/white"
|
|
android:textSize="14dp" />
|
|
|
|
<TextView
|
|
android:id="@+id/daka_rank_second_cost"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="5dp"
|
|
android:text=""
|
|
android:textColor="@android:color/white"
|
|
android:textSize="16dp" />
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/daka_rank_first_layout"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_centerHorizontal="true"
|
|
android:gravity="center"
|
|
android:orientation="vertical">
|
|
|
|
<FrameLayout
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content">
|
|
|
|
<ImageView
|
|
android:layout_width="60dp"
|
|
android:layout_height="37dp"
|
|
android:layout_gravity="center_horizontal"
|
|
android:src="@drawable/ic_ranking1" />
|
|
|
|
<com.facebook.drawee.view.SimpleDraweeView
|
|
android:id="@+id/daka_rank_first_photo"
|
|
android:layout_width="75dp"
|
|
android:layout_height="75dp"
|
|
android:layout_marginTop="30dp"
|
|
fresco:placeholderImage="@color/mainBg"
|
|
fresco:roundAsCircle="true"
|
|
fresco:roundingBorderColor="#FAD112"
|
|
fresco:roundingBorderWidth="2dp" />
|
|
</FrameLayout>
|
|
|
|
<TextView
|
|
android:id="@+id/daka_rank_first_name"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="5dp"
|
|
android:ellipsize="end"
|
|
android:singleLine="true"
|
|
android:text=""
|
|
android:textColor="@android:color/white"
|
|
android:textSize="14dp" />
|
|
|
|
<TextView
|
|
android:id="@+id/daka_rank_first_cost"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="5dp"
|
|
android:text=""
|
|
android:textColor="@android:color/white"
|
|
android:textSize="18dp" />
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/daka_rank_third_layout"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_centerHorizontal="true"
|
|
android:layout_marginLeft="37dp"
|
|
android:layout_marginTop="37dp"
|
|
android:layout_toRightOf="@+id/daka_rank_first_layout"
|
|
android:gravity="center_horizontal"
|
|
android:orientation="vertical">
|
|
|
|
<FrameLayout
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content">
|
|
|
|
<ImageView
|
|
android:layout_width="33dp"
|
|
android:layout_height="17dp"
|
|
android:layout_gravity="center_horizontal"
|
|
android:src="@drawable/ic_ranking3" />
|
|
|
|
<com.facebook.drawee.view.SimpleDraweeView
|
|
android:id="@+id/daka_rank_third_photo"
|
|
android:layout_width="55dp"
|
|
android:layout_height="55dp"
|
|
android:layout_marginTop="15dp"
|
|
fresco:placeholderImage="@color/mainBg"
|
|
fresco:roundAsCircle="true"
|
|
fresco:roundingBorderColor="#F8A76E"
|
|
fresco:roundingBorderWidth="2dp" />
|
|
</FrameLayout>
|
|
<TextView
|
|
android:id="@+id/daka_rank_third_name"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="5dp"
|
|
android:ellipsize="end"
|
|
android:singleLine="true"
|
|
android:text=""
|
|
android:textColor="@android:color/white"
|
|
android:textSize="14dp" />
|
|
<TextView
|
|
android:id="@+id/daka_rank_third_cost"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="5dp"
|
|
android:text=""
|
|
android:textColor="@android:color/white"
|
|
android:textSize="16dp" />
|
|
</LinearLayout>
|
|
</RelativeLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
<com.fengliyan.uikit.refresh.LoadMoreListView
|
|
android:id="@+id/daka_rank_list_view"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:background="@null"
|
|
android:divider="@null"
|
|
android:dividerHeight="0px" />
|
|
</RelativeLayout>
|
|
</androidx.swiperefreshlayout.widget.SwipeRefreshLayout> |