6.5.4礼物冠名
This commit is contained in:
parent
2162645da1
commit
e32e6f95b0
@ -80,10 +80,13 @@ public class DayWishItemViewHolder extends RecyclerView.ViewHolder {
|
|||||||
@Override
|
@Override
|
||||||
public void onViewClicks() {
|
public void onViewClicks() {
|
||||||
int number = model.wishProgress();
|
int number = model.wishProgress();
|
||||||
model.setWishlistNum(String.valueOf(number - 1));
|
if (number>1){
|
||||||
if (listener != null) {
|
model.setWishlistNum(String.valueOf(number - 1));
|
||||||
listener.onUpdate(model, index);
|
if (listener != null) {
|
||||||
|
listener.onUpdate(model, index);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
|
@ -77,10 +77,13 @@ public class LunarWishItemViewHolder extends RecyclerView.ViewHolder {
|
|||||||
@Override
|
@Override
|
||||||
public void onViewClicks() {
|
public void onViewClicks() {
|
||||||
int number = model.wishProgress();
|
int number = model.wishProgress();
|
||||||
model.setWishlistNum(String.valueOf(number - 1));
|
if (number>1){
|
||||||
if (listener != null) {
|
model.setWishlistNum(String.valueOf(number - 1));
|
||||||
listener.onUpdate(model, index);
|
if (listener != null) {
|
||||||
|
listener.onUpdate(model, index);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
|
@ -77,10 +77,13 @@ public class SeasonalWishItemViewHolder extends RecyclerView.ViewHolder {
|
|||||||
@Override
|
@Override
|
||||||
public void onViewClicks() {
|
public void onViewClicks() {
|
||||||
int number = model.wishProgress();
|
int number = model.wishProgress();
|
||||||
model.setWishlistNum(String.valueOf(number - 1));
|
if (number>1){
|
||||||
if (listener != null) {
|
model.setWishlistNum(String.valueOf(number - 1));
|
||||||
listener.onUpdate(model, index);
|
if (listener != null) {
|
||||||
|
listener.onUpdate(model, index);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
|
@ -77,10 +77,13 @@ public class WeekWishItemViewHolder extends RecyclerView.ViewHolder {
|
|||||||
@Override
|
@Override
|
||||||
public void onViewClicks() {
|
public void onViewClicks() {
|
||||||
int number = model.wishProgress();
|
int number = model.wishProgress();
|
||||||
model.setWishlistNum(String.valueOf(number - 1));
|
if (number>1){
|
||||||
if (listener != null) {
|
model.setWishlistNum(String.valueOf(number - 1));
|
||||||
listener.onUpdate(model, index);
|
if (listener != null) {
|
||||||
|
listener.onUpdate(model, index);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
|
@ -92,7 +92,7 @@
|
|||||||
<RelativeLayout
|
<RelativeLayout
|
||||||
android:id="@+id/gift_list"
|
android:id="@+id/gift_list"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="351dp"
|
android:layout_height="361dp"
|
||||||
android:animateLayoutChanges="true"
|
android:animateLayoutChanges="true"
|
||||||
android:orientation="vertical">
|
android:orientation="vertical">
|
||||||
|
|
||||||
@ -157,14 +157,23 @@
|
|||||||
android:progress="0"
|
android:progress="0"
|
||||||
android:progressDrawable="@drawable/progress_bg_user" />
|
android:progressDrawable="@drawable/progress_bg_user" />
|
||||||
|
|
||||||
<TextView
|
<com.yunbao.common.views.weight.MarqueeTextView
|
||||||
android:id="@+id/leave_hint"
|
android:id="@+id/leave_hint"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_gravity="center_vertical"
|
||||||
android:layout_marginTop="2dp"
|
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:text="@string/leveling_points"
|
||||||
android:textColor="#BBBBBB"
|
android:textColor="#BBBBBB"
|
||||||
android:textSize="9sp" />
|
android:textSize="9sp" />
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
|
@ -178,7 +178,10 @@ public class LiveGiftViewHolder extends AbsViewHolder {
|
|||||||
mGiftCount.setText(new LiveTextRender().renderGiftCount(mLianCount));
|
mGiftCount.setText(new LiveTextRender().renderGiftCount(mLianCount));
|
||||||
}
|
}
|
||||||
mLastGiftKey = bean.getKey();
|
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);
|
root_back.setBackgroundResource(R.drawable.background_naming);
|
||||||
findViewById(R.id.naming_icon).setVisibility(View.VISIBLE);
|
findViewById(R.id.naming_icon).setVisibility(View.VISIBLE);
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user