6.5.4礼物冠名

This commit is contained in:
18401019693 2023-08-08 17:09:35 +08:00
parent 2162645da1
commit e32e6f95b0
6 changed files with 40 additions and 16 deletions

View File

@ -80,11 +80,14 @@ public class DayWishItemViewHolder extends RecyclerView.ViewHolder {
@Override
public void onViewClicks() {
int number = model.wishProgress();
if (number>1){
model.setWishlistNum(String.valueOf(number - 1));
if (listener != null) {
listener.onUpdate(model, index);
}
}
}
});
} else {
itemView.findViewById(R.id.hind_layout).setVisibility(View.GONE);

View File

@ -77,11 +77,14 @@ public class LunarWishItemViewHolder extends RecyclerView.ViewHolder {
@Override
public void onViewClicks() {
int number = model.wishProgress();
if (number>1){
model.setWishlistNum(String.valueOf(number - 1));
if (listener != null) {
listener.onUpdate(model, index);
}
}
}
});
} else {
itemView.findViewById(R.id.hind_layout).setVisibility(View.GONE);

View File

@ -77,11 +77,14 @@ public class SeasonalWishItemViewHolder extends RecyclerView.ViewHolder {
@Override
public void onViewClicks() {
int number = model.wishProgress();
if (number>1){
model.setWishlistNum(String.valueOf(number - 1));
if (listener != null) {
listener.onUpdate(model, index);
}
}
}
});
} else {
itemView.findViewById(R.id.hind_layout).setVisibility(View.GONE);

View File

@ -77,11 +77,14 @@ public class WeekWishItemViewHolder extends RecyclerView.ViewHolder {
@Override
public void onViewClicks() {
int number = model.wishProgress();
if (number>1){
model.setWishlistNum(String.valueOf(number - 1));
if (listener != null) {
listener.onUpdate(model, index);
}
}
}
});
} else {
itemView.findViewById(R.id.hind_layout).setVisibility(View.GONE);

View File

@ -92,7 +92,7 @@
<RelativeLayout
android:id="@+id/gift_list"
android:layout_width="match_parent"
android:layout_height="351dp"
android:layout_height="361dp"
android:animateLayoutChanges="true"
android:orientation="vertical">
@ -157,14 +157,23 @@
android:progress="0"
android:progressDrawable="@drawable/progress_bg_user" />
<TextView
<com.yunbao.common.views.weight.MarqueeTextView
android:id="@+id/leave_hint"
android:layout_width="wrap_content"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:layout_marginTop="2dp"
android:ellipsize="marquee"
android:focusable="true"
android:focusableInTouchMode="true"
android:gravity="center"
android:marqueeRepeatLimit="marquee_forever"
android:scrollHorizontally="true"
android:singleLine="true"
android:text="@string/leveling_points"
android:textColor="#BBBBBB"
android:textSize="9sp" />
</LinearLayout>
<ImageView

View File

@ -178,7 +178,10 @@ public class LiveGiftViewHolder extends AbsViewHolder {
mGiftCount.setText(new LiveTextRender().renderGiftCount(mLianCount));
}
mLastGiftKey = bean.getKey();
if (!TextUtils.equals(bean.getNamingLiveuid(), "0") && !TextUtils.equals(bean.getNamingUid(), "0")) {
if (!TextUtils.isEmpty(bean.getNamingLiveuid()) &&
!TextUtils.isEmpty(bean.getNamingUid()) &&
!TextUtils.equals(bean.getNamingLiveuid(), "0") &&
!TextUtils.equals(bean.getNamingUid(), "0")) {
root_back.setBackgroundResource(R.drawable.background_naming);
findViewById(R.id.naming_icon).setVisibility(View.VISIBLE);
} else {