修改测试问题
This commit is contained in:
parent
0317b339f8
commit
d72a9a39c6
@ -1027,11 +1027,12 @@ public class LiveGiftAnimPresenter {
|
|||||||
View mGifGiftTipGroupBuyGuardNew;
|
View mGifGiftTipGroupBuyGuardNew;
|
||||||
LinearLayout guardAllServerNotifyBg;
|
LinearLayout guardAllServerNotifyBg;
|
||||||
TextView mGifGiftTipBuyGuardNew;
|
TextView mGifGiftTipBuyGuardNew;
|
||||||
View mIvLookBuyGuardNew;
|
TextView mIvLookBuyGuardNew;
|
||||||
NewAllServerNotifyGuardEvent notifyGuardEvent;
|
NewAllServerNotifyGuardEvent notifyGuardEvent;
|
||||||
|
|
||||||
public void showBuyGuardGiftAnimNew(NewAllServerNotifyGuardEvent event) {
|
public void showBuyGuardGiftAnimNew(NewAllServerNotifyGuardEvent event) {
|
||||||
notifyGuardEvent = event;
|
notifyGuardEvent = event;
|
||||||
|
mRoomNum = event.getLiveuid();
|
||||||
if (mShowAllServer) {
|
if (mShowAllServer) {
|
||||||
if (mGifAll != null) {
|
if (mGifAll != null) {
|
||||||
LiveReceiveGiftBean bean = new LiveReceiveGiftBean();
|
LiveReceiveGiftBean bean = new LiveReceiveGiftBean();
|
||||||
@ -1079,6 +1080,7 @@ public class LiveGiftAnimPresenter {
|
|||||||
mIvLookBuyGuardNew.setVisibility(View.GONE);
|
mIvLookBuyGuardNew.setVisibility(View.GONE);
|
||||||
} else {
|
} else {
|
||||||
mIvLookBuyGuardNew.setVisibility(View.VISIBLE);
|
mIvLookBuyGuardNew.setVisibility(View.VISIBLE);
|
||||||
|
mIvLookBuyGuardNew.setText(WordUtil.isNewZh()?"圍觀":"Views");
|
||||||
}
|
}
|
||||||
mGifGiftTipShowAnimatorBuyGuardNew.start();
|
mGifGiftTipShowAnimatorBuyGuardNew.start();
|
||||||
|
|
||||||
|
@ -1199,6 +1199,7 @@
|
|||||||
android:background="@mipmap/btn_king_guard_onlookers"
|
android:background="@mipmap/btn_king_guard_onlookers"
|
||||||
android:gravity="center"
|
android:gravity="center"
|
||||||
android:text="@string/onlookers"
|
android:text="@string/onlookers"
|
||||||
|
android:clickable="true"
|
||||||
android:textColor="@color/white"
|
android:textColor="@color/white"
|
||||||
android:textSize="12sp" />
|
android:textSize="12sp" />
|
||||||
|
|
||||||
|
@ -3,7 +3,9 @@ package com.yunbao.main.views;
|
|||||||
import android.content.Context;
|
import android.content.Context;
|
||||||
import android.text.TextUtils;
|
import android.text.TextUtils;
|
||||||
import android.view.View;
|
import android.view.View;
|
||||||
|
import android.view.ViewGroup;
|
||||||
import android.widget.ImageView;
|
import android.widget.ImageView;
|
||||||
|
import android.widget.RelativeLayout;
|
||||||
import android.widget.TextView;
|
import android.widget.TextView;
|
||||||
|
|
||||||
import androidx.annotation.NonNull;
|
import androidx.annotation.NonNull;
|
||||||
@ -151,17 +153,21 @@ public class MainHomeLiveItemViewHolder extends RecyclerView.ViewHolder {
|
|||||||
} else {
|
} else {
|
||||||
viewBg.setVisibility(View.GONE);
|
viewBg.setVisibility(View.GONE);
|
||||||
}
|
}
|
||||||
|
RelativeLayout.LayoutParams dragon_moneyLayoutParams = (RelativeLayout.LayoutParams) dragon_money.getLayoutParams();
|
||||||
if (bean.getRedPacketStatus() == 1) {
|
if (bean.getRedPacketStatus() == 1) {
|
||||||
|
dragon_moneyLayoutParams.leftMargin = DpUtil.dp2px(35);
|
||||||
redPacket.setVisibility(View.VISIBLE);
|
redPacket.setVisibility(View.VISIBLE);
|
||||||
} else {
|
} else {
|
||||||
|
dragon_moneyLayoutParams.leftMargin = DpUtil.dp2px(20);
|
||||||
redPacket.setVisibility(View.GONE);
|
redPacket.setVisibility(View.GONE);
|
||||||
if (bean.getSendMoneyLongStatus() == 1) {
|
|
||||||
dragon_money.setVisibility(View.VISIBLE);
|
|
||||||
} else {
|
|
||||||
dragon_money.setVisibility(View.GONE);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
}
|
||||||
|
if (bean.getSendMoneyLongStatus() == 1) {
|
||||||
|
dragon_money.setLayoutParams(dragon_moneyLayoutParams);
|
||||||
|
dragon_money.setVisibility(View.VISIBLE);
|
||||||
|
} else {
|
||||||
|
dragon_money.setVisibility(View.GONE);
|
||||||
|
}
|
||||||
RxView.clicks(itemView)
|
RxView.clicks(itemView)
|
||||||
.throttleFirst(2, TimeUnit.SECONDS) // 才发送 2s内第1次点击按钮的事件
|
.throttleFirst(2, TimeUnit.SECONDS) // 才发送 2s内第1次点击按钮的事件
|
||||||
.subscribe(new Observer<Unit>() {
|
.subscribe(new Observer<Unit>() {
|
||||||
|
@ -286,6 +286,18 @@
|
|||||||
|
|
||||||
</com.xj.marqueeview.MarqueeView>
|
</com.xj.marqueeview.MarqueeView>
|
||||||
|
|
||||||
|
<ImageView
|
||||||
|
android:id="@+id/dragon_money"
|
||||||
|
android:layout_width="25dp"
|
||||||
|
android:layout_height="30dp"
|
||||||
|
android:layout_alignParentStart="true"
|
||||||
|
android:layout_alignParentTop="true"
|
||||||
|
android:layout_marginStart="35dp"
|
||||||
|
android:layout_marginTop="25dp"
|
||||||
|
android:visibility="gone"
|
||||||
|
app:srcCompat="@mipmap/icon_live_dragon_money"
|
||||||
|
tools:visibility="visible" />
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
android:id="@+id/red_packet"
|
android:id="@+id/red_packet"
|
||||||
android:layout_width="30dp"
|
android:layout_width="30dp"
|
||||||
@ -298,17 +310,6 @@
|
|||||||
app:srcCompat="@mipmap/icon_red_packet"
|
app:srcCompat="@mipmap/icon_red_packet"
|
||||||
tools:visibility="visible" />
|
tools:visibility="visible" />
|
||||||
|
|
||||||
<ImageView
|
|
||||||
android:id="@+id/dragon_money"
|
|
||||||
android:layout_width="36dp"
|
|
||||||
android:layout_height="39dp"
|
|
||||||
android:layout_alignParentStart="true"
|
|
||||||
android:layout_alignParentTop="true"
|
|
||||||
android:layout_marginStart="20dp"
|
|
||||||
android:layout_marginTop="25dp"
|
|
||||||
android:visibility="gone"
|
|
||||||
app:srcCompat="@mipmap/icon_live_dragon_money"
|
|
||||||
tools:visibility="visible" />
|
|
||||||
|
|
||||||
</RelativeLayout>
|
</RelativeLayout>
|
||||||
</LinearLayout>
|
</LinearLayout>
|
Loading…
Reference in New Issue
Block a user