新增PK TOP

This commit is contained in:
zlzw 2022-11-15 11:35:03 +08:00
parent d20210f291
commit 749ac197de
3 changed files with 13 additions and 7 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

View File

@ -1513,9 +1513,10 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis
PkRankBean bean = listResponseModel.getData().getInfo();
if (bean != null) {
LinearLayout.LayoutParams params = new LinearLayout.LayoutParams(DpUtil.dp2px(44), DpUtil.dp2px(16));
LinearLayout.LayoutParams params = new LinearLayout.LayoutParams(DpUtil.dp2px(20), DpUtil.dp2px(22));
LinearLayout.LayoutParams textParams = new LinearLayout.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.WRAP_CONTENT);
textParams.leftMargin = DpUtil.dp2px(5);
params.leftMargin=DpUtil.dp2px(2);
textParams.setMarginStart(DpUtil.dp2px(1));
View hourView = LayoutInflater.from(mContext).inflate(R.layout.view_wish_list, null);
ImageView titleIcon = new ImageView(mContext);
@ -1526,7 +1527,7 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis
mPkRankText.setGravity(Gravity.CENTER);
titleIcon.setImageResource(R.mipmap.icon_pk_rank);
ImgLoader.display(mContext, bean.getImg(), mPkRankIcon);
titleIcon.setLayoutParams(params);
titleIcon.setLayoutParams(new LinearLayout.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT));
mPkRankIcon.setLayoutParams(params);
pkRankVf.addView(titleIcon);
pkRankVf.addView(hourView);

View File

@ -518,7 +518,7 @@
<LinearLayout
android:visibility="visible"
android:id="@+id/live_rank_pk"
android:layout_width="65dp"
android:layout_width="80dp"
android:layout_height="20dp"
android:background="@drawable/bg_live_item_pk_rank"
android:layout_alignTop="@id/hour_rank_layout"
@ -531,8 +531,6 @@
android:id="@+id/rank_pk_vf"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginStart="10dp"
android:layout_marginEnd="10dp"
android:flipInterval="5000"
android:inAnimation="@anim/anim_marquee_in"
android:outAnimation="@anim/anim_marquee_out" />
@ -1244,7 +1242,14 @@
</FrameLayout>
</FrameLayout>
<ImageView
android:id="@+id/icon_pk_top"
android:src="@mipmap/icon_rank_top_box"
android:layout_width="130dp"
android:layout_marginTop="40dp"
android:layout_centerHorizontal="true"
android:layout_alignTop="@+id/live_video"
android:layout_height="35dp"/>
<RelativeLayout
android:id="@+id/lt_pk_line"
android:layout_width="match_parent"