diff --git a/common/src/main/res/mipmap-xxhdpi/bg_live_room_gift.png b/common/src/main/res/mipmap-xxhdpi/bg_live_room_gift.png new file mode 100644 index 000000000..56c647028 Binary files /dev/null and b/common/src/main/res/mipmap-xxhdpi/bg_live_room_gift.png differ diff --git a/common/src/main/res/mipmap-xxhdpi/icon_live_dragon_money.png b/common/src/main/res/mipmap-xxhdpi/icon_live_dragon_money.png index 52809b5b9..6165fbae8 100644 Binary files a/common/src/main/res/mipmap-xxhdpi/icon_live_dragon_money.png and b/common/src/main/res/mipmap-xxhdpi/icon_live_dragon_money.png differ diff --git a/common/src/main/res/mipmap-xxhdpi/icon_live_room_gift.png b/common/src/main/res/mipmap-xxhdpi/icon_live_room_gift.png new file mode 100644 index 000000000..276e1e2e4 Binary files /dev/null and b/common/src/main/res/mipmap-xxhdpi/icon_live_room_gift.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 011890c4f..43358b260 100644 --- a/live/src/main/java/com/yunbao/live/views/LiveRoomViewHolder.java +++ b/live/src/main/java/com/yunbao/live/views/LiveRoomViewHolder.java @@ -2,6 +2,7 @@ package com.yunbao.live.views; import static com.yunbao.live.bean.LiveChatBean.RECOMMEND_CARD_NOTIFY; +import android.annotation.SuppressLint; import android.app.Activity; import android.app.Dialog; import android.content.Context; @@ -1176,6 +1177,7 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis } + @SuppressLint("WrongViewCast") @Override public void init() { EventBus.getDefault().register(this); @@ -1627,7 +1629,7 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis avatar_r1 = (RoundedImageView) findViewById(R.id.avatar_r1); avatar_r2 = (RoundedImageView) findViewById(R.id.avatar_r2); avatar_r3 = (RoundedImageView) findViewById(R.id.avatar_r3); - redPacket = (FrameLayout) findViewById(R.id.red_packet); + redPacket = findViewById(R.id.red_packet); redPacketCountdown = (TextView) findViewById(R.id.red_packet_countdown); redSchedule = (TextView) findViewById(R.id.red_schedule); redPacketQueue = (LinearLayout) findViewById(R.id.red_packet_queue); @@ -1730,8 +1732,8 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis pa_pao_layout.setVisibility(View.GONE); combo_layout.setVisibility(View.GONE); - dragonImmediateParticipation = (LinearLayout) findViewById(R.id.dragon_immediate_participation); - dragonImmediateParticipationTime = (LinearLayout) findViewById(R.id.dragon_immediate_participation_time); + dragonImmediateParticipation = (RelativeLayout) findViewById(R.id.dragon_immediate_participation); + dragonImmediateParticipationTime = (RelativeLayout) findViewById(R.id.dragon_immediate_participation_time); participation_time = (TextView) findViewById(R.id.participation_time); ViewClicksAntiShake.clicksAntiShake(dragonImmediateParticipation, new ViewClicksAntiShake.ViewClicksCallBack() { @@ -2099,8 +2101,8 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis } int ttttttype = 0; - private LinearLayout dragonImmediateParticipation, dragonImmediateParticipationTime; - private FrameLayout redPacket; + private RelativeLayout dragonImmediateParticipation, dragonImmediateParticipationTime; + private RelativeLayout redPacket; private TextView redPacketCountdown, redSchedule, openRedPacket, participation_time; private LinearLayout redPacketQueue; private int redTimeCountdown = 0; diff --git a/live/src/main/res/layout/view_live_room.xml b/live/src/main/res/layout/view_live_room.xml index 6224a66a2..27a7cf643 100644 --- a/live/src/main/res/layout/view_live_room.xml +++ b/live/src/main/res/layout/view_live_room.xml @@ -257,7 +257,8 @@ android:layout_width="14dp" android:layout_height="14dp" android:src="@mipmap/live_icon_wishlist" - android:visibility="gone" /> + android:visibility="gone" + tools:visibility="visible" /> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + android:visibility="gone" + tools:visibility="visible"> - - - - - - - - - - - - - - - - - - - - - - + android:visibility="invisible" + tools:visibility="visible"> - - - - - - - - - - - - - diff --git a/live/src/main/res/mipmap-xhdpi/bg_live_room_red_time.png b/live/src/main/res/mipmap-xhdpi/bg_live_room_red_time.png new file mode 100644 index 000000000..316819c0c Binary files /dev/null and b/live/src/main/res/mipmap-xhdpi/bg_live_room_red_time.png differ diff --git a/live/src/main/res/mipmap-xhdpi/bg_live_room_task.png b/live/src/main/res/mipmap-xhdpi/bg_live_room_task.png new file mode 100644 index 000000000..4818b3b73 Binary files /dev/null and b/live/src/main/res/mipmap-xhdpi/bg_live_room_task.png differ diff --git a/live/src/main/res/mipmap-xhdpi/icon_live_room_task.png b/live/src/main/res/mipmap-xhdpi/icon_live_room_task.png new file mode 100644 index 000000000..841b86b85 Binary files /dev/null and b/live/src/main/res/mipmap-xhdpi/icon_live_room_task.png differ diff --git a/live/src/main/res/mipmap-xxxhdpi/icon_red_packet_new.png b/live/src/main/res/mipmap-xxxhdpi/icon_red_packet_new.png new file mode 100644 index 000000000..1f01e0398 Binary files /dev/null and b/live/src/main/res/mipmap-xxxhdpi/icon_red_packet_new.png differ