diff --git a/common/src/main/res/mipmap-mdpi/icon_rank_top_box.png b/common/src/main/res/mipmap-mdpi/icon_rank_top_box.png new file mode 100644 index 000000000..25e96cfa4 Binary files /dev/null and b/common/src/main/res/mipmap-mdpi/icon_rank_top_box.png differ diff --git a/live/src/main/java/com/yunbao/live/views/LiveRoomViewHolder.java b/live/src/main/java/com/yunbao/live/views/LiveRoomViewHolder.java index 59693cb4f..f9428c15f 100644 --- a/live/src/main/java/com/yunbao/live/views/LiveRoomViewHolder.java +++ b/live/src/main/java/com/yunbao/live/views/LiveRoomViewHolder.java @@ -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); diff --git a/live/src/main/res/layout/view_live_room.xml b/live/src/main/res/layout/view_live_room.xml index 993205bcd..760fb8a0a 100644 --- a/live/src/main/res/layout/view_live_room.xml +++ b/live/src/main/res/layout/view_live_room.xml @@ -518,7 +518,7 @@ @@ -1244,7 +1242,14 @@ - +