送礼交互优化
This commit is contained in:
parent
8e07d4523f
commit
1198a8f1d8
@ -1193,4 +1193,5 @@ Limited ride And limited avatar frame</string>
|
|||||||
<string name="extract_to">%s is extracted from %s</string>
|
<string name="extract_to">%s is extracted from %s</string>
|
||||||
<string name="extract_to2">%S sent to %s</string>
|
<string name="extract_to2">%S sent to %s</string>
|
||||||
<string name="rebot_config_auto_say_max">Over the maximum value</string>
|
<string name="rebot_config_auto_say_max">Over the maximum value</string>
|
||||||
|
<string name="insufficient_balance">Insufficient balance, continue to recharge</string>
|
||||||
</resources>
|
</resources>
|
||||||
|
@ -1188,4 +1188,5 @@
|
|||||||
<string name="extract_to">%s在%s中抽取到了</string>
|
<string name="extract_to">%s在%s中抽取到了</string>
|
||||||
<string name="extract_to2">%S送给了%s</string>
|
<string name="extract_to2">%S送给了%s</string>
|
||||||
<string name="rebot_config_auto_say_max">超过最大值</string>
|
<string name="rebot_config_auto_say_max">超过最大值</string>
|
||||||
|
<string name="insufficient_balance">餘額不足,繼續充值</string>
|
||||||
</resources>
|
</resources>
|
||||||
|
@ -1187,4 +1187,5 @@
|
|||||||
<string name="extract_to">%s在%s中抽取到了</string>
|
<string name="extract_to">%s在%s中抽取到了</string>
|
||||||
<string name="extract_to2">%S送给了%s</string>
|
<string name="extract_to2">%S送给了%s</string>
|
||||||
<string name="rebot_config_auto_say_max">超过最大值</string>
|
<string name="rebot_config_auto_say_max">超过最大值</string>
|
||||||
|
<string name="insufficient_balance">餘額不足,繼續充值</string>
|
||||||
</resources>
|
</resources>
|
||||||
|
@ -1188,4 +1188,5 @@
|
|||||||
<string name="extract_to">%s在%s中抽取到了</string>
|
<string name="extract_to">%s在%s中抽取到了</string>
|
||||||
<string name="extract_to2">%S送给了%s</string>
|
<string name="extract_to2">%S送给了%s</string>
|
||||||
<string name="rebot_config_auto_say_max">超过最大值</string>
|
<string name="rebot_config_auto_say_max">超过最大值</string>
|
||||||
|
<string name="insufficient_balance">餘額不足,繼續充值</string>
|
||||||
</resources>
|
</resources>
|
||||||
|
@ -1194,4 +1194,5 @@ Limited ride And limited avatar frame</string>
|
|||||||
<string name="extract_to2">%S sent to %s</string>
|
<string name="extract_to2">%S sent to %s</string>
|
||||||
<string name="live_vote_create_error">Create Vote Error</string>
|
<string name="live_vote_create_error">Create Vote Error</string>
|
||||||
<string name="rebot_config_auto_say_max">Over the maximum value</string>
|
<string name="rebot_config_auto_say_max">Over the maximum value</string>
|
||||||
|
<string name="insufficient_balance">Insufficient balance, continue to recharge</string>
|
||||||
</resources>
|
</resources>
|
||||||
|
@ -9,9 +9,9 @@ ext {
|
|||||||
]
|
]
|
||||||
manifestPlaceholders = [
|
manifestPlaceholders = [
|
||||||
//正式、
|
//正式、
|
||||||
serverHost : "https://napi.yaoulive.com",
|
// serverHost : "https://napi.yaoulive.com",
|
||||||
// 测试
|
// 测试
|
||||||
// serverHost : "https://ceshi.yaoulive.com",
|
serverHost : "https://ceshi.yaoulive.com",
|
||||||
|
|
||||||
//腾讯地图
|
//腾讯地图
|
||||||
txMapAppKey : "EOZBZ-ASLCU-4XPV3-BDCHZ-4E3Q7-H4BWB",
|
txMapAppKey : "EOZBZ-ASLCU-4XPV3-BDCHZ-4E3Q7-H4BWB",
|
||||||
|
@ -4,6 +4,7 @@ import static com.yunbao.common.CommonAppConfig.isGetNewWrap;
|
|||||||
import static com.yunbao.common.utils.RouteUtil.PATH_COIN;
|
import static com.yunbao.common.utils.RouteUtil.PATH_COIN;
|
||||||
import static com.yunbao.live.views.LiveRoomViewHolder.bean1;
|
import static com.yunbao.live.views.LiveRoomViewHolder.bean1;
|
||||||
|
|
||||||
|
import android.app.Dialog;
|
||||||
import android.content.DialogInterface;
|
import android.content.DialogInterface;
|
||||||
import android.graphics.Color;
|
import android.graphics.Color;
|
||||||
import android.graphics.drawable.ColorDrawable;
|
import android.graphics.drawable.ColorDrawable;
|
||||||
@ -155,6 +156,7 @@ public class LiveGiftDialogFragment extends AbsDialogFragment implements View.On
|
|||||||
DialogInterface.OnShowListener onShowListener;
|
DialogInterface.OnShowListener onShowListener;
|
||||||
private SVGAImageView blindSvga, blindBoxOpen;
|
private SVGAImageView blindSvga, blindBoxOpen;
|
||||||
private View close_view;
|
private View close_view;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected int getLayoutId() {
|
protected int getLayoutId() {
|
||||||
return R.layout.dialog_live_gift_wrap;
|
return R.layout.dialog_live_gift_wrap;
|
||||||
@ -1085,6 +1087,18 @@ public class LiveGiftDialogFragment extends AbsDialogFragment implements View.On
|
|||||||
AppManager.runDebugCode(() -> {
|
AppManager.runDebugCode(() -> {
|
||||||
Log.i("gifBean", mLiveGiftBean.toString());
|
Log.i("gifBean", mLiveGiftBean.toString());
|
||||||
});
|
});
|
||||||
|
} else if (code == 1001) {
|
||||||
|
hideLianBtn();
|
||||||
|
new DialogUitl.Builder(mContext)
|
||||||
|
.setView(R.layout.dialog_live_unfollow)
|
||||||
|
.setConfirmString(getString(R.string.charge))
|
||||||
|
.setContent(getString(R.string.insufficient_balance))
|
||||||
|
.setClickCallback(new DialogUitl.SimpleCallback() {
|
||||||
|
@Override
|
||||||
|
public void onConfirmClick(Dialog dialog, String content) {
|
||||||
|
forwardMyCoin(0);
|
||||||
|
}
|
||||||
|
}).build().show();
|
||||||
} else {
|
} else {
|
||||||
hideLianBtn();
|
hideLianBtn();
|
||||||
ToastUtil.show(msg);
|
ToastUtil.show(msg);
|
||||||
|
@ -2633,18 +2633,22 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis
|
|||||||
getIsHot();
|
getIsHot();
|
||||||
getGuardInfo();
|
getGuardInfo();
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void getGuardInfo() {
|
private void getGuardInfo() {
|
||||||
LiveHttpUtil.getUserList(mLiveUid, mStream, "guard", 1, new HttpCallback() {
|
LiveHttpUtil.getUserList(mLiveUid, mStream, "guard", 1, new HttpCallback() {
|
||||||
@Override
|
@Override
|
||||||
public void onSuccess(int code, String msg, String[] info) {
|
public void onSuccess(int code, String msg, String[] info) {
|
||||||
|
if (code == 0) {
|
||||||
JSONObject json = JSONObject.parseObject(info[0]);
|
JSONObject json = JSONObject.parseObject(info[0]);
|
||||||
JSONArray userlist = json.getJSONArray("userlist");
|
JSONArray userlist = json.getJSONArray("userlist");
|
||||||
if (userlist.size() != 0) {
|
if (userlist.size() != 0) {
|
||||||
setGuardIcon(JSONArray.parseArray(userlist.toJSONString(), LiveUserGiftBean.class).get(0));
|
setGuardIcon(JSONArray.parseArray(userlist.toJSONString(), LiveUserGiftBean.class).get(0));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -41,7 +41,7 @@
|
|||||||
android:layout_marginEnd="6dp"
|
android:layout_marginEnd="6dp"
|
||||||
android:text="@string/come_hint"
|
android:text="@string/come_hint"
|
||||||
android:textColor="#fff"
|
android:textColor="#fff"
|
||||||
android:textSize="10sp" />
|
android:textSize="12sp" />
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user