调整天梯赛大小
This commit is contained in:
@@ -1547,15 +1547,19 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis
|
||||
textParams.setMarginStart(DpUtil.dp2px(3));
|
||||
|
||||
View hourView = LayoutInflater.from(mContext).inflate(R.layout.view_wish_list, null);
|
||||
ImageView titleIcon = new ImageView(mContext);
|
||||
View titleView = LayoutInflater.from(mContext).inflate(R.layout.view_wish_list, null);
|
||||
ImageView titleIcon =titleView.findViewById(R.id.wish_pic);
|
||||
TextView titleText =titleView.findViewById(R.id.wish_index);
|
||||
mPkRankIcon = hourView.findViewById(R.id.wish_pic);
|
||||
mPkRankText = hourView.findViewById(R.id.wish_index);
|
||||
mPkRankText.setLayoutParams(textParams);
|
||||
mPkRankText.setGravity(Gravity.START);
|
||||
titleIcon.setImageResource(R.mipmap.icon_pk_rank);
|
||||
titleIcon.setLayoutParams(new LinearLayout.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT));
|
||||
ImgLoader.display(mContext,bean.getVsImgUrl(),titleIcon);
|
||||
titleText.setText("PK天梯赛");
|
||||
titleText.setLayoutParams(textParams);
|
||||
titleIcon.setLayoutParams(params);
|
||||
mPkRankIcon.setLayoutParams(params);
|
||||
pkRankVf.addView(titleIcon);
|
||||
pkRankVf.addView(titleView);
|
||||
pkRankVf.addView(hourView);
|
||||
pkRankVf.startFlipping();
|
||||
pkRankVf.setOnClickListener(v -> {
|
||||
|
||||
@@ -517,7 +517,7 @@
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/live_rank_pk"
|
||||
android:layout_width="80dp"
|
||||
android:layout_width="70dp"
|
||||
android:layout_height="20dp"
|
||||
android:layout_alignTop="@id/hour_rank_layout"
|
||||
android:layout_alignParentEnd="true"
|
||||
|
||||
Reference in New Issue
Block a user