fix修复测试反馈问题
This commit is contained in:
parent
6eee7b9ede
commit
60485deed5
@ -669,5 +669,7 @@ public class CommonAppConfig {
|
||||
public String getAnchorPkTime() {
|
||||
return SpUtil.getInstance().getStringValue(SpUtil.ANCHOR_PK_TIME);
|
||||
}
|
||||
|
||||
public static boolean isTestEnv() {
|
||||
return CommonAppConfig.HOST.contains("ceshi");
|
||||
}
|
||||
}
|
||||
|
@ -181,6 +181,7 @@ public class GiftWallGiftInfoDialog extends AbsDialogPopupWindow {
|
||||
public void onItemClick(GiftWallTab2Bean.Gift bean, int position) {
|
||||
new GiftWallMainTab2ClassicInfoDialog(mContext, bean, isAnchor)
|
||||
.setFullWindows(!isLiveRoom)
|
||||
.setRank(position+1)
|
||||
.setGiftWallGiftInfoDialog(new GiftWallGiftInfoDialog(mContext, giftId, toUserId, isAnchor)
|
||||
.setFullWindows(isFullWindows)
|
||||
.setAnchorId(anchorId)
|
||||
@ -438,7 +439,9 @@ public class GiftWallGiftInfoDialog extends AbsDialogPopupWindow {
|
||||
|
||||
String tmp = "";
|
||||
if (giftBean.getGift_info().getIlluminate_status() != 1) {//未點亮
|
||||
btn_one.setVisibility(View.VISIBLE);
|
||||
if(list_type==2) {
|
||||
btn_one.setVisibility(View.VISIBLE);
|
||||
}
|
||||
btn_one.setText(R.string.dialog_gift_wall_gfit_info_list_bottom_btn_one_light);
|
||||
tmp = String.format(Locale.getDefault(), "%s", (giftBean.getGift_info().getIlluminate_num() - Integer.parseInt(giftBean.getGift_info().getGift_hall_send_num())));
|
||||
setTips(tmp);
|
||||
@ -479,7 +482,9 @@ public class GiftWallGiftInfoDialog extends AbsDialogPopupWindow {
|
||||
btn_one.setText(WordUtil.getNewString(R.string.dialog_gift_wall_gfit_info_list_bottom_btn_one_champion_get));
|
||||
btn_one_tips.setVisibility(View.GONE);
|
||||
} else {
|
||||
btn_one.setVisibility(View.VISIBLE);
|
||||
if(list_type==2) {
|
||||
btn_one.setVisibility(View.VISIBLE);
|
||||
}
|
||||
btn_one.setText(WordUtil.getNewString(R.string.dialog_gift_wall_gfit_info_list_bottom_btn_one_champion));
|
||||
setTips(String.valueOf(tmp));
|
||||
}
|
||||
|
@ -36,6 +36,7 @@ import com.yunbao.common.utils.DpUtil;
|
||||
import com.yunbao.common.utils.RouteUtil;
|
||||
import com.yunbao.common.utils.ScreenDimenUtil;
|
||||
import com.yunbao.common.utils.ToastUtil;
|
||||
import com.yunbao.common.utils.ViewUtils;
|
||||
import com.yunbao.common.utils.WordUtil;
|
||||
import com.yunbao.common.views.CustomEllipsizeTextView;
|
||||
import com.yunbao.common.views.weight.ViewClicksAntiShake;
|
||||
@ -69,6 +70,7 @@ public class GiftWallMainTab2ClassicInfoDialog extends AbsDialogPopupWindow {
|
||||
String userName;
|
||||
boolean isAnchor;
|
||||
GiftWallGiftInfoDialog giftWallGiftInfoDialog;
|
||||
int rank;
|
||||
|
||||
public GiftWallMainTab2ClassicInfoDialog(@NonNull Context context, GiftWallTab2Bean.Gift gift, boolean isAnchor) {
|
||||
super(context);
|
||||
@ -82,6 +84,11 @@ public class GiftWallMainTab2ClassicInfoDialog extends AbsDialogPopupWindow {
|
||||
return this;
|
||||
}
|
||||
|
||||
public GiftWallMainTab2ClassicInfoDialog setRank(int rank) {
|
||||
this.rank = rank;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GiftWallMainTab2ClassicInfoDialog setGiftWallGiftInfoDialog(GiftWallGiftInfoDialog giftWallGiftInfoDialog) {
|
||||
this.giftWallGiftInfoDialog = giftWallGiftInfoDialog;
|
||||
return this;
|
||||
@ -122,7 +129,7 @@ public class GiftWallMainTab2ClassicInfoDialog extends AbsDialogPopupWindow {
|
||||
public void onSuccess(GiftWallInfoBean data) {
|
||||
GiftWallMainTab2ClassicInfoBean infoBean = new GiftWallMainTab2ClassicInfoBean();
|
||||
infoBean.setIsMe(data.getIs_me());
|
||||
infoBean.setWallInfoGiftInfo(data.getGift_info(),gift);
|
||||
infoBean.setWallInfoGiftInfo(data.getGift_info(), gift);
|
||||
infoBean.setWallInfoData(data.getData());
|
||||
initData(infoBean);
|
||||
}
|
||||
@ -184,6 +191,12 @@ public class GiftWallMainTab2ClassicInfoDialog extends AbsDialogPopupWindow {
|
||||
}
|
||||
}
|
||||
});
|
||||
if (giftWallGiftInfoDialog == null) {
|
||||
ViewUtils.findViewById(this, R.id.tv_rank, TextView.class).setText(WordUtil.getNewString(R.string.dialog_gift_wall_gfit_info_list_bottom_tips4));
|
||||
ViewUtils.findViewById(this, R.id.rank_value, TextView.class).setText(String.valueOf(rank));
|
||||
} else {
|
||||
ViewUtils.findViewById(this, R.id.rank_value, TextView.class).setText(String.valueOf(rank));
|
||||
}
|
||||
}
|
||||
|
||||
void setTopData(GiftWallMainTab2ClassicInfoBean.GiftData data, ImageView avatar, TextView name, TextView value) {
|
||||
|
@ -224,7 +224,7 @@ public class SudGameDoubleDialog extends AbsDialogCenterPopupWindow {
|
||||
protected void onShow() {
|
||||
super.onShow();
|
||||
//关闭倒计时
|
||||
countDownTimer = new CountDownTimer(140000, 1000) {
|
||||
countDownTimer = new CountDownTimer(10000, 1000) {
|
||||
|
||||
@Override
|
||||
public void onTick(long l) {
|
||||
@ -251,7 +251,6 @@ public class SudGameDoubleDialog extends AbsDialogCenterPopupWindow {
|
||||
private void sortByWinNum(List<SudSettleBean> list) {
|
||||
// 按照胜利数排序 settleBeans 列表
|
||||
if (isActivityGame) {
|
||||
//TODO gameSettle.activityGameInfoBean为空 Attempt to invoke interface method 'java.util.Iterator java.util.List.iterator()' on a null object reference
|
||||
for (SudActivityGameInfoBean infoBean : gameSettle.activityGameInfoBean) {
|
||||
for (SudSettleBean bean : list) {
|
||||
if (bean.getUid().equals(infoBean.getUid() + "")) {
|
||||
|
@ -3,6 +3,7 @@ package com.yunbao.common.event;
|
||||
import android.text.TextUtils;
|
||||
|
||||
import com.google.gson.annotations.SerializedName;
|
||||
import com.yunbao.common.CommonAppConfig;
|
||||
import com.yunbao.common.bean.BaseModel;
|
||||
import com.yunbao.common.utils.StringUtil;
|
||||
import com.yunbao.common.utils.ToastUtil;
|
||||
@ -25,7 +26,11 @@ public class CheckCurrencyModel extends BaseModel {
|
||||
|
||||
public CheckCurrencyModel() {
|
||||
activityList = new ArrayList<>();
|
||||
activityList.add("24");//测试服-台球
|
||||
if(CommonAppConfig.isTestEnv()) {
|
||||
activityList.add("24");//测试服-台球
|
||||
}else {
|
||||
activityList.add("38");//正式服-台球
|
||||
}
|
||||
}
|
||||
|
||||
public List<String> getActivityList() {
|
||||
|
@ -2,6 +2,7 @@ package com.yunbao.common.manager;
|
||||
|
||||
import android.app.Dialog;
|
||||
import android.content.Context;
|
||||
import android.content.DialogInterface;
|
||||
import android.os.Handler;
|
||||
import android.os.Looper;
|
||||
import android.text.Spannable;
|
||||
@ -20,6 +21,7 @@ import com.yunbao.common.event.CheckCurrencyModel;
|
||||
import com.yunbao.common.event.CheckRemainingBalanceEvent;
|
||||
import com.yunbao.common.http.base.HttpCallback;
|
||||
import com.yunbao.common.http.live.LiveNetManager;
|
||||
import com.yunbao.common.interfaces.OnItemClickListener;
|
||||
import com.yunbao.common.manager.game.AbsRandomGameManager;
|
||||
import com.yunbao.common.manager.game.BilliardsRandomManager;
|
||||
import com.yunbao.common.sud.QuickStartGameViewModel;
|
||||
@ -79,23 +81,14 @@ public class RandomSudGameManager {
|
||||
}
|
||||
|
||||
private void createRoom(Context mContext) {
|
||||
//name = 三大风扇史蒂夫史蒂夫的房间 sill = 1 currencyType = 4 id = 24 isTicket = true
|
||||
String userName = IMLoginManager.get(mContext).getUserInfo().getUserNicename();
|
||||
String name = WordUtil.isNewZh() ? userName + "的房间 " : userName + "‘s room";
|
||||
String sill = "1";
|
||||
String currencyType = "4";
|
||||
String id = "24";
|
||||
LiveNetManager.get(mContext).createSudRoom(name, sill, currencyType, id, true, new HttpCallback<CreateSudRoomModel>() {
|
||||
@Override
|
||||
public void onSuccess(CreateSudRoomModel data) {
|
||||
start(data, true, true);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onError(String error) {
|
||||
|
||||
}
|
||||
});
|
||||
if(gameManager!=null){
|
||||
gameManager.randomCreateRoom(mContext, new OnItemClickListener<CreateSudRoomModel>() {
|
||||
@Override
|
||||
public void onItemClick(CreateSudRoomModel bean, int position) {
|
||||
start(bean, true, true);
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
public void reset() {
|
||||
|
@ -1,9 +1,14 @@
|
||||
package com.yunbao.common.manager.game;
|
||||
|
||||
import android.app.Dialog;
|
||||
import android.content.Context;
|
||||
import android.content.DialogInterface;
|
||||
|
||||
import com.yunbao.common.bean.CreateSudRoomModel;
|
||||
import com.yunbao.common.bean.SudGameRoomInfoBean;
|
||||
import com.yunbao.common.event.CheckCurrencyModel;
|
||||
import com.yunbao.common.event.CheckRemainingBalanceEvent;
|
||||
import com.yunbao.common.interfaces.OnItemClickListener;
|
||||
import com.yunbao.common.sud.QuickStartGameViewModel;
|
||||
import com.yunbao.common.sud.state.SudMGPMGState;
|
||||
|
||||
@ -24,6 +29,7 @@ public abstract class AbsRandomGameManager {
|
||||
public abstract void onStart(CheckCurrencyModel currencyModel, CreateSudRoomModel data, boolean isHome, boolean isRandom);
|
||||
|
||||
public abstract void reset();
|
||||
public abstract void randomCreateRoom(Context mContext, OnItemClickListener<CreateSudRoomModel> onClickListener);
|
||||
|
||||
public abstract void onGameMGCommonGameBilliardsHitState(SudMGPMGState.MGCommonGameBilliardsHitState model);
|
||||
|
||||
|
@ -1,5 +1,7 @@
|
||||
package com.yunbao.common.manager.game;
|
||||
|
||||
import android.content.Context;
|
||||
import android.content.DialogInterface;
|
||||
import android.os.Handler;
|
||||
import android.os.Looper;
|
||||
import android.view.View;
|
||||
@ -8,6 +10,7 @@ import android.widget.Button;
|
||||
import com.blankj.utilcode.util.LogUtils;
|
||||
import com.google.gson.Gson;
|
||||
import com.lzf.easyfloat.enums.ShowPattern;
|
||||
import com.yunbao.common.CommonAppConfig;
|
||||
import com.yunbao.common.R;
|
||||
import com.yunbao.common.bean.BaseModel;
|
||||
import com.yunbao.common.bean.CreateSudRoomModel;
|
||||
@ -55,7 +58,7 @@ public class BilliardsRandomManager extends AbsRandomGameManager {
|
||||
public void onStart(CheckCurrencyModel currencyModel, CreateSudRoomModel data, boolean isHome, boolean isRandom) {
|
||||
this.data = data;
|
||||
if (isInitDebug) {
|
||||
isInitDebug=false;
|
||||
isInitDebug = false;
|
||||
new Handler(Looper.getMainLooper())
|
||||
.postDelayed(() -> {
|
||||
DebugDialog.getInstance(new DebugDialog.DebugDialogRunnable() {
|
||||
@ -109,6 +112,32 @@ public class BilliardsRandomManager extends AbsRandomGameManager {
|
||||
onItemClickListener.onItemClick("", 0);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void randomCreateRoom(Context mContext, OnItemClickListener<CreateSudRoomModel> onClickListener) {
|
||||
//name = 三大风扇史蒂夫史蒂夫的房间 sill = 1 currencyType = 4 id = 24 isTicket = true
|
||||
String userName = IMLoginManager.get(mContext).getUserInfo().getUserNicename();
|
||||
String name = WordUtil.isNewZh() ? userName + "的房间 " : userName + "‘s room";
|
||||
String sill = "1";
|
||||
String currencyType = "4";
|
||||
String id;
|
||||
if (CommonAppConfig.isTestEnv()) {
|
||||
id = "24";
|
||||
} else {
|
||||
id = "38";
|
||||
}
|
||||
LiveNetManager.get(mContext).createSudRoom(name, sill, currencyType, id, true, new HttpCallback<CreateSudRoomModel>() {
|
||||
@Override
|
||||
public void onSuccess(CreateSudRoomModel data) {
|
||||
onClickListener.onItemClick(data, 0);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onError(String error) {
|
||||
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onGameState(CheckRemainingBalanceEvent event) {
|
||||
super.onGameState(event);
|
||||
@ -118,7 +147,6 @@ public class BilliardsRandomManager extends AbsRandomGameManager {
|
||||
if (event.getSudMGPMGState().equals(SudMGPMGState.MG_COMMON_PLAYER_IN)) {
|
||||
LogUtils.e("收到的回调: AI uid = " + getAiUid() + "| kickUid = " + event.getPlayerIn().kickUID + "|" + getPlayerSize());
|
||||
if (event.getPlayerIn().reason == 1 && aiInfo != null) {
|
||||
ToastUtil.show("踢掉了AI");
|
||||
reset();
|
||||
isAddRobot = false;
|
||||
} else if (event.getPlayerIn().isIn && getPlayerSize() < 2) {
|
||||
@ -152,7 +180,6 @@ public class BilliardsRandomManager extends AbsRandomGameManager {
|
||||
}
|
||||
autoJoinRobotHandler = new Handler(Looper.getMainLooper());
|
||||
autoJoinRobotHandler.postDelayed(autoJoinRobotRunnable, 5000);
|
||||
ToastUtil.show("启动定时器准备AI");
|
||||
}
|
||||
|
||||
@Override
|
||||
@ -193,17 +220,14 @@ public class BilliardsRandomManager extends AbsRandomGameManager {
|
||||
}
|
||||
}
|
||||
}
|
||||
ToastUtil.show("台球状态:" + model.state + "| uid = " + model.uid + " | " + isOneOverForMy);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean onGameMGCommonGameSettle(SudMGPMGState.MGCommonGameSettle model) {
|
||||
System.out.println("游戏结束 :" + isOneOverForMy + "|" + comboNumberForMy);
|
||||
if (isOneOverForMy == 1 && comboNumberForMy > 1) {
|
||||
//ToastUtil.show("一杆清");
|
||||
model.achievement = WordUtil.getNewString(R.string.game_dialog_activity_achievements_0);
|
||||
} else if (comboNumberForMy > 0) {
|
||||
//ToastUtil.show("连杆:" + comboNumberForMy);
|
||||
switch (comboNumberForMy) {
|
||||
case 1:
|
||||
model.achievement = WordUtil.getNewString(R.string.game_dialog_activity_achievements_1);
|
||||
@ -243,7 +267,6 @@ public class BilliardsRandomManager extends AbsRandomGameManager {
|
||||
|
||||
public void onAddAiPlayer() {
|
||||
if (isAddRobot && getPlayerSize() == 1) {
|
||||
ToastUtil.show("加入AI机器人");
|
||||
LiveNetManager.get(AppManager.getInstance().getMainActivity())
|
||||
.ballClearanceTableAiAdd(data.getSudGameRoomId(), new HttpCallback<>() {
|
||||
@Override
|
||||
@ -266,11 +289,12 @@ public class BilliardsRandomManager extends AbsRandomGameManager {
|
||||
.ballClearanceTableStatus(data.getSudGameRoomId(), new HttpCallback<BaseModel>() {
|
||||
@Override
|
||||
public void onSuccess(BaseModel data) {
|
||||
|
||||
ToastUtil.show("标记一杆清台失败");
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onError(String error) {
|
||||
ToastUtil.show("标记一杆清台失败 错误:" + error);
|
||||
|
||||
}
|
||||
});
|
||||
|
@ -366,6 +366,9 @@ public class LiveSudGamePopup extends BottomPopupView {
|
||||
@Override
|
||||
public void onConfirmClick(Dialog dialog, String content) {
|
||||
dialog.dismiss();
|
||||
if(sudLoadDialog.isShow()){
|
||||
sudLoadDialog.dismiss();
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
@ -123,14 +123,14 @@
|
||||
android:id="@+id/tv_star"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="55dp"
|
||||
android:layout_marginTop="5dp"
|
||||
android:text="@string/dialog_gift_wall_list_info_list_header_rename_value1"
|
||||
android:textColor="#EEFFF8"
|
||||
android:textSize="14sp"
|
||||
android:textStyle="bold"
|
||||
app:layout_constraintEnd_toEndOf="@+id/imageView6"
|
||||
app:layout_constraintStart_toStartOf="@+id/imageView6"
|
||||
app:layout_constraintTop_toBottomOf="@+id/imageView6" />
|
||||
app:layout_constraintEnd_toEndOf="@+id/gift_name"
|
||||
app:layout_constraintStart_toStartOf="@+id/gift_name"
|
||||
app:layout_constraintTop_toBottomOf="@+id/gift_name" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/star_value"
|
||||
@ -143,12 +143,36 @@
|
||||
app:layout_constraintStart_toStartOf="@+id/tv_star"
|
||||
app:layout_constraintTop_toBottomOf="@+id/tv_star" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_rank"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="5dp"
|
||||
android:text="@string/dialog_gift_wall_gfit_info_list_bottom_tips2"
|
||||
android:textColor="#EEFFF8"
|
||||
android:textSize="14sp"
|
||||
android:textStyle="bold"
|
||||
app:layout_constraintEnd_toEndOf="@+id/anchor_name"
|
||||
app:layout_constraintStart_toStartOf="@+id/anchor_name"
|
||||
app:layout_constraintTop_toBottomOf="@+id/anchor_name" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/rank_value"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="TextView"
|
||||
android:textColor="#EEFFF8"
|
||||
android:textSize="14sp"
|
||||
app:layout_constraintEnd_toEndOf="@+id/tv_rank"
|
||||
app:layout_constraintStart_toStartOf="@+id/tv_rank"
|
||||
app:layout_constraintTop_toBottomOf="@+id/tv_rank" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/imageView7"
|
||||
android:layout_width="214dp"
|
||||
android:layout_height="25dp"
|
||||
android:layout_marginTop="10dp"
|
||||
app:layout_constraintEnd_toEndOf="@+id/star_value"
|
||||
app:layout_constraintEnd_toEndOf="@+id/rank_value"
|
||||
app:layout_constraintStart_toStartOf="@+id/star_value"
|
||||
app:layout_constraintTop_toBottomOf="@+id/star_value"
|
||||
app:srcCompat="@mipmap/gift_wall_tab2_classic_info_tips" />
|
||||
|
@ -10,7 +10,7 @@
|
||||
android:id="@+id/tv_rank"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="0.6"
|
||||
android:layout_weight="0.4"
|
||||
android:gravity="start|center"
|
||||
android:text="@string/dialog_gift_wall_list_info_list_header_rank"
|
||||
android:textColor="#FFFFFF"
|
||||
@ -25,9 +25,9 @@
|
||||
<LinearLayout
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:layout_weight="0.5"
|
||||
android:layout_gravity="bottom"
|
||||
android:gravity="start|bottom"
|
||||
android:gravity="center|bottom"
|
||||
android:orientation="vertical"
|
||||
app:layout_constraintBottom_toBottomOf="@+id/tv_rank"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
@ -71,7 +71,7 @@
|
||||
<LinearLayout
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:layout_weight="1.2"
|
||||
android:gravity="center"
|
||||
android:orientation="vertical"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
@ -79,65 +79,71 @@
|
||||
app:layout_constraintStart_toEndOf="@+id/avatar2"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:layout_constraintVertical_bias="0.0">
|
||||
|
||||
<androidx.constraintlayout.widget.ConstraintLayout
|
||||
android:id="@+id/avatar2_layout"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:visibility="visible">
|
||||
|
||||
<com.makeramen.roundedimageview.RoundedImageView
|
||||
android:id="@+id/avatar2"
|
||||
android:layout_width="32dp"
|
||||
android:layout_height="32dp"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:layout_marginTop="8dp"
|
||||
android:src="@mipmap/icon_avatar_placeholder"
|
||||
android:visibility="invisible"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:riv_oval="true"
|
||||
tools:visibility="visible" />
|
||||
|
||||
<Button
|
||||
android:id="@+id/tips1"
|
||||
android:layout_width="39dp"
|
||||
android:layout_height="14dp"
|
||||
android:background="@drawable/bg_gift_wall_star_t1"
|
||||
android:text="@string/dialog_gift_wall_list_info_list_header_rename_tip1"
|
||||
android:textAllCaps="false"
|
||||
android:textSize="8sp"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
<Button
|
||||
android:id="@+id/tips2"
|
||||
android:layout_width="22dp"
|
||||
android:layout_height="22dp"
|
||||
android:layout_marginStart="40dp"
|
||||
android:background="@drawable/bg_gift_wall_star_t2"
|
||||
android:text="@string/dialog_gift_wall_list_info_list_header_rename_tip2"
|
||||
android:textAllCaps="false"
|
||||
android:textSize="6sp"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent" />
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
|
||||
|
||||
<TextView
|
||||
android:id="@+id/user_name"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:ellipsize="end"
|
||||
<LinearLayout
|
||||
android:orientation="vertical"
|
||||
android:gravity="center"
|
||||
android:singleLine="true"
|
||||
android:text="@string/dialog_gift_wall_list_info_list_header_rename_tip3"
|
||||
android:textColor="#FFFFFF"
|
||||
android:textSize="12sp"
|
||||
tools:text="@string/dialog_gift_wall_list_info_list_header_rename_tip3" />
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content">
|
||||
<androidx.constraintlayout.widget.ConstraintLayout
|
||||
android:id="@+id/avatar2_layout"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:visibility="visible">
|
||||
|
||||
<com.makeramen.roundedimageview.RoundedImageView
|
||||
android:id="@+id/avatar2"
|
||||
android:layout_width="32dp"
|
||||
android:layout_height="32dp"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:layout_marginTop="8dp"
|
||||
android:src="@mipmap/icon_avatar_placeholder"
|
||||
android:visibility="invisible"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:riv_oval="true"
|
||||
tools:visibility="visible" />
|
||||
|
||||
<Button
|
||||
android:id="@+id/tips1"
|
||||
android:layout_width="39dp"
|
||||
android:layout_height="14dp"
|
||||
android:background="@drawable/bg_gift_wall_star_t1"
|
||||
android:text="@string/dialog_gift_wall_list_info_list_header_rename_tip1"
|
||||
android:textAllCaps="false"
|
||||
android:textSize="8sp"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
<Button
|
||||
android:id="@+id/tips2"
|
||||
android:layout_width="22dp"
|
||||
android:layout_height="22dp"
|
||||
android:layout_marginStart="40dp"
|
||||
android:background="@drawable/bg_gift_wall_star_t2"
|
||||
android:text="@string/dialog_gift_wall_list_info_list_header_rename_tip2"
|
||||
android:textAllCaps="false"
|
||||
android:textSize="6sp"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent" />
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
|
||||
|
||||
<TextView
|
||||
android:id="@+id/user_name"
|
||||
android:layout_width="58dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:ellipsize="end"
|
||||
android:gravity="center"
|
||||
android:singleLine="true"
|
||||
android:text="@string/dialog_gift_wall_list_info_list_header_rename_tip3"
|
||||
android:textColor="#FFFFFF"
|
||||
android:textSize="12sp"
|
||||
tools:text="啊啊啊啊" />
|
||||
</LinearLayout>
|
||||
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
@ -145,7 +151,7 @@
|
||||
android:id="@+id/tv_rename"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="0.8"
|
||||
android:layout_weight="0.4"
|
||||
android:gravity="end|center"
|
||||
android:text="@string/dialog_gift_wall_list_info_list_header_rename_value"
|
||||
android:textColor="#FFFFFF"
|
||||
|
@ -10,7 +10,7 @@
|
||||
android:id="@+id/tv_rank"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="0.6"
|
||||
android:layout_weight="0.4"
|
||||
android:gravity="start|center"
|
||||
android:text="@string/dialog_gift_wall_list_info_list_header_rank"
|
||||
android:textColor="#FFFFFF"
|
||||
@ -64,7 +64,7 @@
|
||||
<LinearLayout
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:layout_weight="1.2"
|
||||
android:gravity="center"
|
||||
android:orientation="vertical"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
@ -139,7 +139,7 @@
|
||||
android:id="@+id/tv_rename"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="0.8"
|
||||
android:layout_weight="0.4"
|
||||
android:gravity="end|center"
|
||||
android:text="@string/dialog_gift_wall_list_info_list_header_rename_value"
|
||||
android:textColor="#FFFFFF"
|
||||
|
@ -1527,13 +1527,14 @@
|
||||
<string name="dialog_gift_wall_gfit_info_list_bottom_tips">當前主播</string>
|
||||
<string name="dialog_gift_wall_gfit_info_list_bottom_tips2">當前排名</string>
|
||||
<string name="dialog_gift_wall_gfit_info_list_bottom_tips3">已收到:</string>
|
||||
<string name="dialog_gift_wall_gfit_info_list_bottom_tips4">曆史排名</string>
|
||||
<string name="dialog_gift_wall_list_info_list_header_rank">排名</string>
|
||||
<string name="dialog_gift_wall_list_info_list_header_rename">冠名歸屬</string>
|
||||
<string name="dialog_gift_wall_list_info_list_header_rename1">周星歸屬</string>
|
||||
<string name="dialog_gift_wall_list_info_list_header_rename_value">冠名值</string>
|
||||
<string name="dialog_gift_wall_list_info_list_header_rename_value1">星光值</string>
|
||||
<string name="dialog_gift_wall_list_info_list_header_rename_tip1">最佳助力</string>
|
||||
<string name="dialog_gift_wall_list_info_list_header_rename_tip2">最佳\n助力</string>
|
||||
<string name="dialog_gift_wall_list_info_list_header_rename_tip2">更多\n助力</string>
|
||||
<string name="dialog_gift_wall_list_info_list_header_rename_tip3">助力團</string>
|
||||
<string name="dialog_gift_wall_list1_title">周星禮物</string>
|
||||
<string name="dialog_gift_wall_list2_title">經典禮物</string>
|
||||
|
@ -1531,6 +1531,7 @@
|
||||
<string name="dialog_gift_wall_gfit_info_list_bottom_tips">Anchor</string>
|
||||
<string name="dialog_gift_wall_gfit_info_list_bottom_tips2">Current ranking</string>
|
||||
<string name="dialog_gift_wall_gfit_info_list_bottom_tips3">Received:</string>
|
||||
<string name="dialog_gift_wall_gfit_info_list_bottom_tips4">Historical ranking</string>
|
||||
<string name="dialog_gift_wall_list_info_list_header_rank">Rank</string>
|
||||
<string name="dialog_gift_wall_list_info_list_header_rename">Title attribution</string>
|
||||
<string name="dialog_gift_wall_list_info_list_header_rename1">Weekly star attribution</string>
|
||||
|
@ -635,6 +635,9 @@ public class SudSwGameActivity extends AbsActivity implements GameSwMicManager.M
|
||||
@Override
|
||||
public void onConfirmClick(Dialog dialog, String content) {
|
||||
dialog.dismiss();
|
||||
if(sudLoadDialog.isShow()){
|
||||
sudLoadDialog.dismiss();
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user