6.7.0用户端更新:

This commit is contained in:
余前卫 2024-06-17 10:59:47 +08:00
parent 9fa4924278
commit bf3ebfedbd
4 changed files with 25 additions and 13 deletions

View File

@ -71,7 +71,12 @@ public class PrankAdapter extends RecyclerView.Adapter<RecyclerView.ViewHolder>
if(viewHolder instanceof MyViewHolder){ if(viewHolder instanceof MyViewHolder){
MyViewHolder holder = (MyViewHolder) viewHolder; MyViewHolder holder = (MyViewHolder) viewHolder;
holder.itemView.setOnClickListener(v-> onItemClickListener.onItemClick(v,data.getGift_id())); holder.itemView.setOnClickListener(v-> onItemClickListener.onItemClick(v,data.getGift_id()));
holder.prank_item_subscript.setText(String.valueOf(data.getCompleted_num())); int completedNum = data.getCompleted_num();
if (completedNum>99){
holder.prank_item_subscript.setText("99+");
}else {
holder.prank_item_subscript.setText(String.valueOf(data.getCompleted_num()));
}
holder.prank_item_prank_name.setText(data.getPrank_content()); holder.prank_item_prank_name.setText(data.getPrank_content());
holder.prank_item_gift_name.setText(WordUtil.isNewZh() ? data.getGift_name() : data.getGift_name_en()); holder.prank_item_gift_name.setText(WordUtil.isNewZh() ? data.getGift_name() : data.getGift_name_en());
holder.prank_item_now_progress.setText(String.valueOf(data.getSend_num())); holder.prank_item_now_progress.setText(String.valueOf(data.getSend_num()));

View File

@ -1717,13 +1717,19 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis
} }
if(prankAnisShow){ if(prankAnisShow){
prankAdapter.showAnView(completedList,prankAnisShow); prankAdapter.showAnView(completedList,prankAnisShow);
prank_group_turntable.setText(WordUtil.isNewZh()?"整蠱進度":"progress"); prank_group_turntable.setText(R.string.prank_progress);
prank_group_title.setText(WordUtil.isNewZh()?"待完成整蠱":"To do"); prank_group_title.setText(WordUtil.isNewZh()?"待完成整蠱":"To do");
if (!completedList.isEmpty()){
limitItem(1,Math.min(completedList.size(), 4));
}else {
recycler_prank.setVisibility(View.GONE);
}
}else{ }else{
prankAdapter.showAnView(prankAndComboList,prankAnisShow); prankAdapter.showAnView(prankAndComboList,prankAnisShow);
prank_group_turntable.setText(WordUtil.isNewZh()?"待完成整蠱":"To do"); prank_group_turntable.setText(WordUtil.isNewZh()?"待完成整蠱":"To do");
prank_group_title.setText(WordUtil.isNewZh()?"整蠱進度":"To do"); prank_group_title.setText(WordUtil.isNewZh()?"整蠱進度":"To do");
recycler_prank.setVisibility(View.VISIBLE);
limitItem(1,Math.min(prankAndComboList.size(), 4));
} }
}); });

View File

@ -10,12 +10,12 @@
<TextView <TextView
android:id="@+id/prank_item_subscript" android:id="@+id/prank_item_subscript"
android:layout_width="11dp" android:layout_width="15dp"
android:layout_height="11dp" android:layout_height="11dp"
android:gravity="center" android:gravity="center"
android:background="@drawable/bg_prank_item_subscript" android:background="@drawable/bg_prank_item_subscript"
android:textStyle="bold" android:textStyle="bold"
android:text="8" android:text="1"
android:textColor="#FFF9B003" android:textColor="#FFF9B003"
android:textSize="8sp"/> android:textSize="8sp"/>

View File

@ -1502,14 +1502,6 @@
android:background="@color/white" android:background="@color/white"
android:visibility="invisible" /> android:visibility="invisible" />
<include
android:id="@+id/vote_layout"
layout="@layout/sim_live_room_vote"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentEnd="true"
android:visibility="gone" />
<ImageView <ImageView
android:id="@+id/icon_pk_top" android:id="@+id/icon_pk_top"
android:layout_width="110dp" android:layout_width="110dp"
@ -2607,6 +2599,15 @@
android:visibility="gone" /> android:visibility="gone" />
</LinearLayout> </LinearLayout>
<!-- 问答UI-->
<include
android:id="@+id/vote_layout"
layout="@layout/sim_live_room_vote"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentEnd="true"
android:visibility="gone" />
<pl.droidsonroids.gif.GifImageView <pl.droidsonroids.gif.GifImageView
android:id="@+id/dr_pk_end_gif" android:id="@+id/dr_pk_end_gif"
android:layout_width="match_parent" android:layout_width="match_parent"