拍照房小时榜飘屏UI修改
This commit is contained in:
@@ -1664,7 +1664,7 @@ public class MessageView extends FrameLayout {
|
|||||||
text.append(" x" + attachment.getPrizeNum() + " ", new ForegroundColorSpan(roomTipColor));
|
text.append(" x" + attachment.getPrizeNum() + " ", new ForegroundColorSpan(roomTipColor));
|
||||||
}
|
}
|
||||||
if (attachment.getSecond() == CUSTOM_MSG_SUB_BOX_ME) {
|
if (attachment.getSecond() == CUSTOM_MSG_SUB_BOX_ME) {
|
||||||
text.append("仅自己可见", new ForegroundColorSpan(Color.WHITE));
|
text.append("(仅自己可见)", new ForegroundColorSpan(Color.WHITE));
|
||||||
}
|
}
|
||||||
tvContent.setText(text.build());
|
tvContent.setText(text.build());
|
||||||
}
|
}
|
||||||
|
@@ -1020,10 +1020,13 @@ class RoomEffectView @JvmOverloads constructor(
|
|||||||
}
|
}
|
||||||
val msgBean = (chatRoomMessage.attachment as RoomRankAttachment).msgBean
|
val msgBean = (chatRoomMessage.attachment as RoomRankAttachment).msgBean
|
||||||
val rootView = LayoutInflater.from(mContext).inflate(R.layout.layout_room_rank_notify, null)
|
val rootView = LayoutInflater.from(mContext).inflate(R.layout.layout_room_rank_notify, null)
|
||||||
(rootView.findViewById<View>(R.id.tv_nick) as TextView).text =
|
val textView = rootView.findViewById<TextView>(R.id.tv_content)
|
||||||
msgBean.title.subAndReplaceDot(6)
|
val text = MessageView.SpannableBuilder(textView)
|
||||||
(rootView.findViewById<View>(R.id.tv_desc) as TextView).text = msgBean.desc
|
.append("恭喜", ForegroundColorSpan(Color.WHITE))
|
||||||
ImageLoadUtils.loadImage(context, msgBean.avatar, rootView.findViewById(R.id.iv_avatar))
|
.append("「${msgBean.title}」房间", Color.parseColor("#FFFC4C"))
|
||||||
|
.append(msgBean.desc, ForegroundColorSpan(Color.WHITE))
|
||||||
|
.append("TOP1", ForegroundColorSpan(Color.parseColor("#FFFC4C")))
|
||||||
|
textView.text = text.build()
|
||||||
rootView.setOnClickListener { AVRoomActivity.start(context, msgBean.uid) }
|
rootView.setOnClickListener { AVRoomActivity.start(context, msgBean.uid) }
|
||||||
binding.flSingleRoomRankNotify.addView(rootView)
|
binding.flSingleRoomRankNotify.addView(rootView)
|
||||||
animationLuckyGift = AnimationUtils.loadAnimation(mContext, R.anim.anim_box_notify)
|
animationLuckyGift = AnimationUtils.loadAnimation(mContext, R.anim.anim_box_notify)
|
||||||
|
BIN
app/src/main/res/drawable-xhdpi/room_bg_rank_go_room.png
Normal file
BIN
app/src/main/res/drawable-xhdpi/room_bg_rank_go_room.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 4.2 KiB |
BIN
app/src/main/res/drawable-xhdpi/room_bg_rank_notice.png
Normal file
BIN
app/src/main/res/drawable-xhdpi/room_bg_rank_notice.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 74 KiB |
@@ -5,55 +5,28 @@
|
|||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:layout_gravity="center_horizontal"
|
android:layout_gravity="center_horizontal"
|
||||||
android:background="@drawable/single_room_bg_rank_notice"
|
android:background="@drawable/room_bg_rank_notice"
|
||||||
android:gravity="center"
|
android:gravity="center"
|
||||||
android:orientation="horizontal"
|
android:orientation="horizontal"
|
||||||
android:paddingTop="4dp"
|
android:paddingTop="4dp"
|
||||||
tools:layout_height="60dp">
|
tools:layout_height="60dp">
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
|
android:id="@+id/tv_content"
|
||||||
|
android:layout_width="0dp"
|
||||||
|
android:maxLines="2"
|
||||||
|
android:textSize="12dp"
|
||||||
|
android:textStyle="bold"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginStart="65dp"
|
||||||
|
android:layout_weight="1" />
|
||||||
|
|
||||||
|
<ImageView
|
||||||
|
android:id="@+id/iv_go_room"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:includeFontPadding="false"
|
android:layout_marginStart="5dp"
|
||||||
android:text="恭喜"
|
android:layout_marginEnd="7dp"
|
||||||
android:textColor="@color/white"
|
android:src="@drawable/room_bg_rank_go_room" />
|
||||||
android:textSize="13dp" />
|
|
||||||
|
|
||||||
<com.yizhuan.erban.common.widget.CircleImageView
|
|
||||||
android:id="@+id/iv_avatar"
|
|
||||||
android:layout_width="22dp"
|
|
||||||
android:layout_height="22dp"
|
|
||||||
android:layout_marginStart="3dp"
|
|
||||||
android:layout_marginEnd="3dp"
|
|
||||||
android:includeFontPadding="false"
|
|
||||||
android:src="@drawable/default_avatar" />
|
|
||||||
|
|
||||||
<TextView
|
|
||||||
android:id="@+id/tv_nick"
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:includeFontPadding="false"
|
|
||||||
android:textColor="#FFFFFC4C"
|
|
||||||
android:textSize="13dp"
|
|
||||||
tools:text="厅的名字七个字" />
|
|
||||||
|
|
||||||
<TextView
|
|
||||||
android:id="@+id/tv_desc"
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:includeFontPadding="false"
|
|
||||||
android:textColor="@color/white"
|
|
||||||
android:textSize="13dp"
|
|
||||||
tools:text=" 成为上时段 小时榜" />
|
|
||||||
|
|
||||||
<TextView
|
|
||||||
android:id="@+id/tv_top"
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:gravity="center"
|
|
||||||
android:includeFontPadding="false"
|
|
||||||
android:text="TOP1"
|
|
||||||
android:textColor="#FFFFFC4C"
|
|
||||||
android:textSize="13dp" />
|
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
Reference in New Issue
Block a user