2022-08-09 16:54:30 +08:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2022-08-09 17:44:44 +08:00
|
|
|
android:layout_marginStart="9dp"
|
2022-08-09 16:54:30 +08:00
|
|
|
android:gravity="center"
|
|
|
|
android:orientation="vertical">
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/live_info_view"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:orientation="vertical"
|
|
|
|
android:visibility="visible">
|
|
|
|
|
|
|
|
<com.yunbao.common.custom.MyRelativeLayout5
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
2022-08-09 17:44:44 +08:00
|
|
|
android:layout_marginBottom="9dp">
|
2022-08-09 16:54:30 +08:00
|
|
|
|
|
|
|
<com.makeramen.roundedimageview.RoundedImageView
|
|
|
|
android:id="@+id/cover"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:scaleType="centerCrop"
|
|
|
|
app:riv_corner_radius="10dp" />
|
|
|
|
|
|
|
|
<com.yunbao.common.custom.RatioRoundImageView
|
|
|
|
android:id="@+id/bgs"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="0dp"
|
|
|
|
android:layout_alignParentBottom="true"
|
|
|
|
android:src="@mipmap/bg_main_item_bottom"
|
|
|
|
app:ri_ratio="0.5"
|
|
|
|
app:riv_corner_radius="10dp" />
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:id="@+id/live_type"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginLeft="8dp"
|
|
|
|
android:layout_marginTop="8dp"
|
|
|
|
android:gravity="center" />
|
|
|
|
|
|
|
|
|
|
|
|
<RelativeLayout
|
|
|
|
android:id="@+id/views"
|
|
|
|
android:layout_width="46dp"
|
|
|
|
android:layout_height="16dp"
|
|
|
|
android:layout_alignParentRight="true"
|
|
|
|
android:layout_marginTop="8dp"
|
|
|
|
android:layout_marginRight="8dp"
|
|
|
|
android:background="@mipmap/live_zt">
|
|
|
|
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:id="@+id/tv_live_ico"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_centerVertical="true"
|
|
|
|
android:src="@mipmap/icon_main_rest_work" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/tv_live_state"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_centerHorizontal="true"
|
|
|
|
android:layout_centerVertical="true"
|
|
|
|
android:paddingLeft="8dp"
|
|
|
|
android:text="休息"
|
|
|
|
android:textColor="@color/color_white"
|
|
|
|
android:textSize="10sp" />
|
|
|
|
|
|
|
|
</RelativeLayout>
|
|
|
|
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_alignParentBottom="true"
|
|
|
|
android:layout_marginLeft="10dp"
|
|
|
|
android:layout_marginRight="10dp"
|
|
|
|
android:orientation="vertical">
|
|
|
|
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:id="@+id/type"
|
|
|
|
android:layout_width="50dp"
|
|
|
|
android:layout_height="16dp"
|
|
|
|
android:scaleType="fitXY" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/title"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginTop="5dp"
|
|
|
|
android:ellipsize="end"
|
|
|
|
android:includeFontPadding="false"
|
|
|
|
android:maxLines="1"
|
|
|
|
android:textColor="#fff"
|
|
|
|
android:textSize="13sp"
|
|
|
|
android:textStyle="bold" />
|
|
|
|
|
|
|
|
<RelativeLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginBottom="5dp">
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/name"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:ellipsize="end"
|
|
|
|
android:singleLine="true"
|
|
|
|
android:textColor="#fff"
|
|
|
|
android:textSize="10sp" />
|
|
|
|
|
|
|
|
<com.yunbao.common.custom.DrawableTextView
|
|
|
|
android:id="@+id/num"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_alignParentRight="true"
|
|
|
|
android:drawablePadding="4dp"
|
|
|
|
android:gravity="center"
|
|
|
|
android:singleLine="true"
|
|
|
|
android:textColor="#B3ffffff"
|
|
|
|
android:textSize="10sp"
|
|
|
|
android:textStyle="bold"
|
|
|
|
app:dt_left_drawable="@mipmap/icon_main_live_num"
|
|
|
|
app:dt_left_height="14dp"
|
|
|
|
app:dt_left_width="14dp" />
|
|
|
|
|
|
|
|
</RelativeLayout>
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<com.makeramen.roundedimageview.RoundedImageView
|
|
|
|
android:id="@+id/pk_avatar"
|
|
|
|
android:layout_width="40dp"
|
|
|
|
android:layout_height="40dp"
|
|
|
|
android:layout_alignParentRight="true"
|
|
|
|
android:layout_alignParentBottom="true"
|
|
|
|
android:layout_marginLeft="10dp"
|
|
|
|
android:layout_marginTop="6dp"
|
|
|
|
android:layout_marginRight="5dp"
|
|
|
|
android:layout_marginBottom="50dp"
|
|
|
|
android:scaleType="centerCrop"
|
|
|
|
app:riv_border_color="@color/color_white"
|
|
|
|
app:riv_border_width="0.8dp"
|
|
|
|
app:riv_corner_radius="2dp" />
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:id="@+id/pk_ico"
|
|
|
|
android:layout_width="20dp"
|
|
|
|
android:layout_height="20dp"
|
|
|
|
android:layout_alignParentRight="true"
|
|
|
|
android:layout_alignParentBottom="true"
|
|
|
|
android:layout_marginRight="33dp"
|
|
|
|
android:layout_marginBottom="60dp"
|
|
|
|
android:src="@mipmap/live_pk" />
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:id="@+id/dr_pk_ico"
|
|
|
|
android:layout_width="100dp"
|
|
|
|
android:layout_height="18dp"
|
|
|
|
android:layout_alignParentRight="true"
|
|
|
|
android:layout_alignParentBottom="true"
|
|
|
|
android:layout_marginBottom="40dp"
|
|
|
|
android:src="@mipmap/multiplayerpk" />
|
|
|
|
|
|
|
|
|
|
|
|
</com.yunbao.common.custom.MyRelativeLayout5>
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/lt_week_list"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:orientation="vertical"
|
|
|
|
android:visibility="gone">
|
|
|
|
|
|
|
|
<com.yunbao.common.custom.MyRelativeLayout5
|
|
|
|
android:layout_width="match_parent"
|
2022-08-09 17:44:44 +08:00
|
|
|
android:layout_height="match_parent">
|
2022-08-09 16:54:30 +08:00
|
|
|
|
|
|
|
<ViewFlipper
|
|
|
|
android:id="@+id/viewflipper_banner"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:layout_margin="3dp"
|
|
|
|
android:flipInterval="1000"
|
|
|
|
android:inAnimation="@anim/vice_screen_come_in"
|
|
|
|
android:outAnimation="@anim/vice_screen_come_out"
|
|
|
|
android:visibility="gone" />
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:id="@+id/img_week_head"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:layout_margin="3dp"
|
|
|
|
android:background="@color/transparent"
|
|
|
|
android:src="@mipmap/chat_head_mo"
|
|
|
|
android:visibility="visible" />
|
|
|
|
|
|
|
|
|
|
|
|
<com.opensource.svgaplayer.SVGAImageView
|
|
|
|
android:id="@+id/week_svga"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:scaleType="centerCrop"
|
|
|
|
app:autoPlay="true" />
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_alignParentBottom="true"
|
|
|
|
android:layout_marginLeft="10dp"
|
|
|
|
android:layout_marginRight="10dp"
|
|
|
|
android:orientation="vertical">
|
|
|
|
|
|
|
|
<RelativeLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginLeft="6dp"
|
|
|
|
android:layout_marginBottom="12dp">
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/name2"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:ellipsize="end"
|
|
|
|
android:singleLine="true"
|
|
|
|
android:textColor="#fff"
|
|
|
|
android:textSize="10sp" />
|
|
|
|
|
|
|
|
<com.yunbao.common.custom.DrawableTextView
|
|
|
|
android:id="@+id/num2"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_alignParentRight="true"
|
|
|
|
android:drawablePadding="4dp"
|
|
|
|
android:gravity="center"
|
|
|
|
android:singleLine="true"
|
|
|
|
android:textColor="#B3ffffff"
|
|
|
|
android:textSize="10sp"
|
|
|
|
android:textStyle="bold"
|
|
|
|
app:dt_left_drawable="@mipmap/icon_main_live_num"
|
|
|
|
app:dt_left_height="14dp"
|
|
|
|
app:dt_left_width="14dp" />
|
|
|
|
|
|
|
|
</RelativeLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
</com.yunbao.common.custom.MyRelativeLayout5>
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<com.xj.marqueeview.MarqueeView
|
|
|
|
android:id="@+id/rv_ranking_list"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="65dp"
|
|
|
|
android:layout_gravity="center"
|
|
|
|
android:layout_marginLeft="4dp"
|
|
|
|
android:layout_marginBottom="9dp"
|
|
|
|
android:background="@drawable/border_f1f1f1"
|
|
|
|
android:visibility="gone"
|
|
|
|
app:mvDirection="bottom_to_top"
|
|
|
|
app:mvInterval="3000" />
|
|
|
|
|
|
|
|
</LinearLayout>
|