心愿单位置移动

This commit is contained in:
18401019693 2023-04-14 10:46:13 +08:00
parent 0ed37aee11
commit cbb1531356

View File

@ -658,7 +658,7 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis
// } // }
public void endDRGif() { public void endDRGif() {
if (dr_pk_end_gif.getVisibility() == View.GONE) { if (dr_pk_end_gif.getVisibility() == View.GONE && isShowGif) {
dr_pk_end_gif.setVisibility(View.VISIBLE); dr_pk_end_gif.setVisibility(View.VISIBLE);
visibility = false; visibility = false;
RequestOptions options = new RequestOptions().skipMemoryCache(true);//配置 RequestOptions options = new RequestOptions().skipMemoryCache(true);//配置
@ -4400,12 +4400,14 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis
private TextView textGrade1, textGrade2, textGrade3, textGrade4; private TextView textGrade1, textGrade2, textGrade3, textGrade4;
private ImageView imageGrade1, imageGrade2, imageGrade3, imageGrade4; private ImageView imageGrade1, imageGrade2, imageGrade3, imageGrade4;
private LinearLayout linearGrade1, linearGrade2, linearGrade3, linearGrade4; private LinearLayout linearGrade1, linearGrade2, linearGrade3, linearGrade4;
private boolean isShowGif = false;
/** /**
* PK倒计时 * PK倒计时
*/ */
private String userId2, userId3 = "", userId4; private String userId2, userId3 = "", userId4;
public void upDataPkScore(JSONArray pkScores, int time) { public void upDataPkScore(JSONArray pkScores, int time) {
isShowGif = true;
if (detailsView == null) { if (detailsView == null) {
detailsView = LayoutInflater.from(mContext).inflate(R.layout.view_live_pk_details, null); detailsView = LayoutInflater.from(mContext).inflate(R.layout.view_live_pk_details, null);
timeTitle = detailsView.findViewById(R.id.time_title); timeTitle = detailsView.findViewById(R.id.time_title);
@ -4556,6 +4558,7 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis
}; };
public void removeDetailView() { public void removeDetailView() {
if (detailsView != null) { if (detailsView != null) {
mRoot.removeView(detailsView); mRoot.removeView(detailsView);
detailsView = null; detailsView = null;
@ -4565,6 +4568,7 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis
if (mHandler != null) { if (mHandler != null) {
mHandler.removeMessages(WHAT_PK_TIME); mHandler.removeMessages(WHAT_PK_TIME);
} }
isShowGif = false;
} }
/** /**