新增PK TOP
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user