360 lines
18 KiB
XML
360 lines
18 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"
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
android:id="@+id/channel_refresh"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:background="@color/transparent"
|
|
tools:viewBindingIgnore="true">
|
|
|
|
<RelativeLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent">
|
|
|
|
<RelativeLayout
|
|
android:id="@+id/ll_topview"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_alignParentTop="true"
|
|
android:orientation="vertical">
|
|
|
|
<ImageView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="@dimen/dp280"
|
|
android:scaleType="fitEnd"
|
|
android:layout_below="@+id/daka_rank_header_layout"
|
|
android:src="@drawable/bg_dibu"/>
|
|
|
|
<FrameLayout
|
|
android:id="@+id/fl_top"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="215dp"
|
|
android:layout_below="@+id/daka_rank_header_layout">
|
|
|
|
<RelativeLayout
|
|
android:id="@+id/rl_top"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="30dp"
|
|
android:orientation="horizontal">
|
|
|
|
<RelativeLayout
|
|
android:id="@+id/daka_rank_second_layout"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="150dp"
|
|
android:layout_marginStart="35dp"
|
|
android:layout_marginTop="27dp"
|
|
android:layout_weight="1"
|
|
android:orientation="vertical">
|
|
|
|
<ImageView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_centerHorizontal="true"
|
|
android:src="@drawable/ic_rank2" />
|
|
|
|
<com.facebook.drawee.view.SimpleDraweeView
|
|
android:id="@+id/daka_rank_second_photo"
|
|
android:layout_width="67dp"
|
|
android:layout_height="67dp"
|
|
android:layout_centerHorizontal="true"
|
|
android:layout_gravity="center_horizontal"
|
|
android:layout_marginTop="26dp"
|
|
fresco:placeholderImage="@color/mainBg"
|
|
fresco:roundAsCircle="true"
|
|
fresco:roundingBorderColor="#D8DFE5"
|
|
fresco:roundingBorderWidth="2dp" />
|
|
|
|
<TextView
|
|
android:id="@+id/daka_rank_second_name"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_below="@+id/daka_rank_second_photo"
|
|
android:layout_centerHorizontal="true"
|
|
android:layout_gravity="center_horizontal"
|
|
android:layout_marginTop="14dp"
|
|
android:textColor="@color/white"
|
|
android:textSize="14sp"
|
|
android:textStyle="bold"
|
|
tools:text="123" />
|
|
|
|
<TextView
|
|
android:id="@+id/daka_rank_second_cost"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_below="@+id/daka_rank_second_name"
|
|
android:layout_centerHorizontal="true"
|
|
android:layout_gravity="center_horizontal"
|
|
android:layout_marginTop="2dp"
|
|
android:textColor="@android:color/white"
|
|
android:textSize="12sp"
|
|
tools:text="123" />
|
|
</RelativeLayout>
|
|
|
|
<RelativeLayout
|
|
android:id="@+id/daka_rank_first_layout"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="170dp"
|
|
android:layout_marginLeft="4dp"
|
|
android:layout_marginRight="4dp"
|
|
android:layout_weight="1"
|
|
android:orientation="vertical">
|
|
|
|
<ImageView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_centerHorizontal="true"
|
|
android:src="@drawable/ic_rank1" />
|
|
|
|
<com.facebook.drawee.view.SimpleDraweeView
|
|
android:id="@+id/daka_rank_first_photo"
|
|
android:layout_width="67dp"
|
|
android:layout_height="67dp"
|
|
android:layout_centerHorizontal="true"
|
|
android:layout_gravity="center_horizontal"
|
|
android:layout_marginTop="26dp"
|
|
fresco:placeholderImage="@color/mainBg"
|
|
fresco:roundAsCircle="true"
|
|
fresco:roundingBorderColor="#FBD06A"
|
|
fresco:roundingBorderWidth="2dp" />
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_below="@+id/daka_rank_first_photo"
|
|
android:layout_centerHorizontal="true"
|
|
android:layout_marginTop="-8dp"
|
|
android:background="@drawable/ic_rank_first_bg"
|
|
android:gravity="center_horizontal"
|
|
android:paddingTop="3dp"
|
|
android:text="第一名"
|
|
android:textColor="#BC5423"
|
|
android:textSize="12dp" />
|
|
|
|
<TextView
|
|
android:id="@+id/daka_rank_first_name"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_below="@+id/daka_rank_first_photo"
|
|
android:layout_centerHorizontal="true"
|
|
android:layout_gravity="center_horizontal"
|
|
android:layout_marginTop="30dp"
|
|
android:textColor="@color/white"
|
|
android:textSize="16dp"
|
|
android:textStyle="bold"
|
|
tools:text="123" />
|
|
|
|
<TextView
|
|
android:id="@+id/daka_rank_first_cost"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center_horizontal"
|
|
android:layout_marginTop="10dp"
|
|
android:textColor="@android:color/white"
|
|
android:textSize="14sp"
|
|
android:visibility="gone" />
|
|
</RelativeLayout>
|
|
|
|
<RelativeLayout
|
|
android:id="@+id/daka_rank_third_layout"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="150dp"
|
|
android:layout_marginTop="36dp"
|
|
android:layout_marginEnd="35dp"
|
|
android:layout_weight="1"
|
|
android:orientation="vertical">
|
|
|
|
<ImageView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_centerHorizontal="true"
|
|
android:src="@drawable/ic_rank3" />
|
|
|
|
<com.facebook.drawee.view.SimpleDraweeView
|
|
android:id="@+id/daka_rank_third_photo"
|
|
android:layout_width="67dp"
|
|
android:layout_height="67dp"
|
|
android:layout_centerHorizontal="true"
|
|
android:layout_gravity="center_horizontal"
|
|
android:layout_marginTop="26dp"
|
|
fresco:placeholderImage="@color/mainBg"
|
|
fresco:roundAsCircle="true"
|
|
fresco:roundingBorderColor="#F5C6B4"
|
|
fresco:roundingBorderWidth="2dp" />
|
|
|
|
<TextView
|
|
android:id="@+id/daka_rank_third_name"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_below="@+id/daka_rank_third_photo"
|
|
android:layout_centerHorizontal="true"
|
|
android:layout_gravity="center_horizontal"
|
|
android:layout_marginTop="14dp"
|
|
android:textColor="@color/white"
|
|
android:textSize="14dp"
|
|
android:textStyle="bold"
|
|
tools:text="123" />
|
|
|
|
<TextView
|
|
android:id="@+id/daka_rank_third_cost"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_below="@+id/daka_rank_third_name"
|
|
android:layout_centerHorizontal="true"
|
|
android:layout_gravity="center_horizontal"
|
|
android:layout_marginTop="2dp"
|
|
android:textColor="@android:color/white"
|
|
android:textSize="12sp"
|
|
tools:text="123" />
|
|
</RelativeLayout>
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_alignParentTop="true"
|
|
android:layout_gravity="center_horizontal"
|
|
android:layout_marginTop="5dp"
|
|
android:orientation="horizontal"
|
|
android:visibility="gone">
|
|
|
|
<LinearLayout
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginLeft="7.5dp"
|
|
android:layout_marginTop="22dp"
|
|
android:layout_weight="1"
|
|
android:gravity="center_horizontal">
|
|
|
|
<com.opensource.svgaplayer.SVGAImageView
|
|
android:id="@+id/svga2"
|
|
android:layout_width="70dp"
|
|
android:layout_height="55dp"
|
|
android:background="@color/transparent" />
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginLeft="4dp"
|
|
android:layout_marginRight="4dp"
|
|
android:layout_weight="1"
|
|
android:gravity="center_horizontal">
|
|
|
|
<com.opensource.svgaplayer.SVGAImageView
|
|
android:id="@+id/svga1"
|
|
android:layout_width="80dp"
|
|
android:layout_height="65dp"
|
|
android:background="@color/transparent" />
|
|
</LinearLayout>
|
|
|
|
|
|
<LinearLayout
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="22dp"
|
|
android:layout_marginRight="4dp"
|
|
android:layout_weight="1"
|
|
android:gravity="center_horizontal">
|
|
|
|
<com.opensource.svgaplayer.SVGAImageView
|
|
android:id="@+id/svga3"
|
|
android:layout_width="70dp"
|
|
android:layout_height="55dp"
|
|
android:background="@color/transparent" />
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|
|
</RelativeLayout>
|
|
</FrameLayout>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/daka_rank_header_layout"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="36dp"
|
|
android:layout_alignParentTop="true"
|
|
android:layout_centerHorizontal="true"
|
|
android:layout_gravity="center_horizontal"
|
|
android:layout_marginStart="36dp"
|
|
android:layout_marginTop="90dp"
|
|
android:layout_marginEnd="36dp"
|
|
android:background="@drawable/shape_daka_rank_frame"
|
|
android:orientation="horizontal">
|
|
|
|
<TextView
|
|
android:id="@+id/daka_rank_header_day"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_margin="4dp"
|
|
android:layout_weight="1"
|
|
android:background="@drawable/shape_daka_rank_frame1"
|
|
android:gravity="center"
|
|
android:text="日榜"
|
|
android:textColor="#EB6DD2"
|
|
android:textSize="14sp"
|
|
android:textStyle="bold" />
|
|
|
|
<TextView
|
|
android:id="@+id/daka_rank_header_week"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_margin="4dp"
|
|
android:layout_weight="1"
|
|
android:gravity="center"
|
|
android:text="周榜"
|
|
android:textColor="@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_margin="4dp"
|
|
android:layout_weight="1"
|
|
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"
|
|
android:visibility="gone" />
|
|
</LinearLayout>
|
|
</RelativeLayout>
|
|
|
|
<!-- <LinearLayout-->
|
|
<!-- android:layout_width="match_parent"-->
|
|
<!-- android:layout_height="match_parent"-->
|
|
<!-- android:layout_below="@+id/ll_topview"-->
|
|
<!-- android:layout_marginTop="240dp"-->
|
|
<!-- android:background="@color/bg_gray"-->
|
|
<!-- android:layout_marginLeft="7.5dp"-->
|
|
<!-- android:layout_marginRight="7.5dp"-->
|
|
<!-- >-->
|
|
|
|
<com.fengliyan.uikit.refresh.LoadMoreListView
|
|
android:id="@+id/daka_rank_list_view"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_below="@+id/ll_topview"
|
|
android:layout_marginTop="-50dp"
|
|
android:layout_marginHorizontal="@dimen/dp10"
|
|
android:background="@drawable/top_corner_bg"
|
|
android:divider="@color/transparent"
|
|
android:paddingTop="20dp"
|
|
android:scrollbars="none" />
|
|
|
|
</RelativeLayout>
|
|
</androidx.swiperefreshlayout.widget.SwipeRefreshLayout> |