调整数据 设置的图标大小

This commit is contained in:
ningwenqiang 2024-10-22 18:21:10 +08:00
parent c55b262926
commit a220408853
4 changed files with 7 additions and 44 deletions

View File

@ -1,32 +0,0 @@
package com.yunbao.common.bean;
import com.google.gson.annotations.SerializedName;
import java.util.List;
public class SendFreeGiftBean extends BaseModel{
//"code":0,"msg":"","info":[]},"msg":""
@SerializedName("code")
private int code;
@SerializedName("msg")
private String msg;
public int getCode() {
return code;
}
public void setCode(int code) {
this.code = code;
}
public String getMsg() {
return msg;
}
public void setMsg(String msg) {
this.msg = msg;
}
}

View File

@ -222,7 +222,7 @@ public interface PDLiveApi {
* @param liveuid 直播间id
*/
@GET("/api/public/?service=Tasknew.sendFreeGift")
Observable<ResponseModel<SendFreeGiftBean>> sendFreeGift(@Query("liveuid") String liveuid);
Observable<ResponseModel<List<BaseModel>>> sendFreeGift(@Query("liveuid") String liveuid);
/**
* 清除系统消息的未读数

View File

@ -211,8 +211,8 @@
android:orientation="vertical">
<ImageView
android:layout_width="50dp"
android:layout_height="50dp"
android:layout_width="31dp"
android:layout_height="40dp"
android:src="@mipmap/icon_interaction_live_data" />
<TextView
@ -234,8 +234,8 @@
android:orientation="vertical">
<ImageView
android:layout_width="50dp"
android:layout_height="50dp"
android:layout_width="31dp"
android:layout_height="40dp"
android:src="@mipmap/icon_interaction_robot" />
<TextView

View File

@ -17,17 +17,14 @@ import android.text.TextUtils;
import android.text.style.ForegroundColorSpan;
import android.util.Log;
import android.view.Gravity;
import android.view.LayoutInflater;
import android.view.MotionEvent;
import android.view.View;
import android.view.ViewTreeObserver;
import android.view.Window;
import android.view.WindowManager;
import android.widget.FrameLayout;
import android.widget.ImageView;
import android.widget.ProgressBar;
import android.widget.RadioButton;
import android.widget.TextView;
import androidx.core.content.ContextCompat;
@ -86,7 +83,6 @@ import com.yunbao.live.activity.LiveActivity;
import com.yunbao.live.activity.LiveAudienceActivity;
import com.yunbao.live.adapter.FrameGiftNewAdapter;
import com.yunbao.live.adapter.GiftTitleAdapter;
import com.yunbao.live.adapter.LiveGiftFragmentPagerAdapter;
import com.yunbao.live.bean.CoinModel;
import com.yunbao.live.bean.GiftTopBean;
import com.yunbao.live.bean.LiveGuardInfo;
@ -94,7 +90,6 @@ import com.yunbao.live.event.GiftTitleEvent;
import com.yunbao.live.event.LiveAudienceEvent;
import com.yunbao.live.event.LiveGiftItemEvent;
import com.yunbao.live.event.LiveParcelItemRefreshEvent;
import com.yunbao.live.views.LiveGiftFragment;
import org.greenrobot.eventbus.EventBus;
@ -754,10 +749,10 @@ public class LiveGiftPopup2 extends AbsDialogFragment {
}
if (liveGiftModel.getTag() != null) {
if (mCount.equals("1")) {
API.get().pdLiveApi(mContext).sendFreeGift(mLiveUid).subscribeOn(Schedulers.io()).observeOn(AndroidSchedulers.mainThread()).subscribe(listResponseModel -> {
API.get().pdLiveApi(mContext).sendFreeGift(mLiveUid).subscribeOn(Schedulers.io()).observeOn(AndroidSchedulers.mainThread()).subscribe( listResponseModel -> {
EventBus.getDefault().post("stop_svga_new_user_gif");
EventBus.getDefault().post("stop_new_user_gif");
if (listResponseModel.getData() != null && listResponseModel.getData().getCode() == 0) {
if (listResponseModel.getData().getCode()==0) {
EventBus.getDefault().post("stop_new_user_gif1");
}
dismiss();