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