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 0516048ba..27744c551 100644 --- a/live/src/main/java/com/yunbao/live/views/LiveRoomViewHolder.java +++ b/live/src/main/java/com/yunbao/live/views/LiveRoomViewHolder.java @@ -3570,15 +3570,15 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis ImageView hourPic = hourView.findViewById(R.id.wish_pic); mHotText = hotView.findViewById(R.id.wish_index); mHourRank = hourView.findViewById(R.id.wish_index); - mHotText.setText("熱度加成"); - mHourRank.setText("0"); + mHotText.setText("0"); + mHourRank.setText(mHourRank.getContext().getString(R.string.heat_add)); // mHotText.setLayoutParams(textParams); // mHourRank.setLayoutParams(textParams); - mHotText.setGravity(Gravity.CENTER); - mHourRank.setGravity(Gravity.CENTER); +// mHotText.setGravity(Gravity.CENTER); +// mHourRank.setGravity(Gravity.CENTER); setHourRankData(Long.parseLong(model.getRank())); - hotPic.setImageResource(R.mipmap.ic_live_hour_rank); - hourPic.setImageResource(R.mipmap.ic_live_hot_rank); + hotPic.setImageResource(R.mipmap.ic_live_hot_rank); + hourPic.setImageResource(R.mipmap.ic_live_hour_rank); // hotPic.setLayoutParams(params); // hourPic.setLayoutParams(params); flipper.addView(hotView); @@ -3626,13 +3626,14 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis mHotText = hotView.findViewById(R.id.wish_index); mHourRank = hourView.findViewById(R.id.wish_index); mHotText.setText("0"); + mHourRank.setText(mHourRank.getContext().getString(R.string.heat_add)); // mHotText.setLayoutParams(textParams); // mHourRank.setLayoutParams(textParams); - mHotText.setGravity(Gravity.CENTER); - mHourRank.setGravity(Gravity.CENTER); +// mHotText.setGravity(Gravity.CENTER); +// mHourRank.setGravity(Gravity.CENTER); setHourRankData(info.get(0).getRank()); - hotPic.setImageResource(R.mipmap.ic_live_hour_rank); - hourPic.setImageResource(R.mipmap.ic_live_hot_rank); + hotPic.setImageResource(R.mipmap.ic_live_hot_rank); + hourPic.setImageResource(R.mipmap.ic_live_hour_rank); // hotPic.setLayoutParams(params); // hourPic.setLayoutParams(params); flipper.addView(hotView); diff --git a/live/src/main/res/layout/view_wish_list2.xml b/live/src/main/res/layout/view_wish_list2.xml index f565648fa..5aee829a0 100644 --- a/live/src/main/res/layout/view_wish_list2.xml +++ b/live/src/main/res/layout/view_wish_list2.xml @@ -1,12 +1,13 @@ + tools:layout_height="22.5dp">