修复测试反馈问题
This commit is contained in:
parent
05aea2448f
commit
2808e41288
@ -2,6 +2,10 @@ package com.yunbao.common.dialog;
|
|||||||
|
|
||||||
import android.app.Activity;
|
import android.app.Activity;
|
||||||
import android.content.Context;
|
import android.content.Context;
|
||||||
|
import android.text.Spannable;
|
||||||
|
import android.text.SpannableString;
|
||||||
|
import android.text.style.ImageSpan;
|
||||||
|
import android.view.View;
|
||||||
import android.widget.Button;
|
import android.widget.Button;
|
||||||
import android.widget.TextView;
|
import android.widget.TextView;
|
||||||
|
|
||||||
@ -18,7 +22,7 @@ import com.yunbao.common.views.weight.ViewClicksAntiShake;
|
|||||||
public class ActivateEliteBattleOrderPopupWindow extends CenterPopupView {
|
public class ActivateEliteBattleOrderPopupWindow extends CenterPopupView {
|
||||||
private boolean elites;//是否精英战令
|
private boolean elites;//是否精英战令
|
||||||
private String spendMoney;//花费钱
|
private String spendMoney;//花费钱
|
||||||
private Button buttonWarOrder;
|
private View buttonWarOrder;
|
||||||
private LiberalBattlePassPopupWindow.LiberalBattlePassCallback mPassCallback;
|
private LiberalBattlePassPopupWindow.LiberalBattlePassCallback mPassCallback;
|
||||||
private String mBattlePassTypeId;
|
private String mBattlePassTypeId;
|
||||||
|
|
||||||
@ -65,10 +69,8 @@ public class ActivateEliteBattleOrderPopupWindow extends CenterPopupView {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
//中文按钮文字
|
//中文按钮文字
|
||||||
StringBuffer stringBuffer = new StringBuffer();
|
|
||||||
stringBuffer.append(spendMoney)
|
((TextView)findViewById(R.id.button_war_order_text)).setText(spendMoney);
|
||||||
.append(WordUtil.isNewZh()?"鑽開通":"Activate ");
|
|
||||||
buttonWarOrder.setText(stringBuffer.toString());
|
|
||||||
|
|
||||||
ViewClicksAntiShake.clicksAntiShake(buttonWarOrder, new ViewClicksAntiShake.ViewClicksCallBack() {
|
ViewClicksAntiShake.clicksAntiShake(buttonWarOrder, new ViewClicksAntiShake.ViewClicksCallBack() {
|
||||||
@Override
|
@Override
|
||||||
|
@ -1,11 +1,28 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||||
|
xmlns:tools="http://schemas.android.com/tools"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="291dp"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginStart="17dp"
|
android:layout_marginStart="17dp"
|
||||||
android:layout_marginEnd="17dp"
|
android:layout_marginEnd="17dp">
|
||||||
|
<ImageView
|
||||||
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
|
app:layout_constraintTop_toTopOf="parent"
|
||||||
android:background="@drawable/background_order_dialog"
|
android:background="@drawable/background_order_dialog"
|
||||||
android:orientation="vertical">
|
android:layout_width="0dp"
|
||||||
|
android:layout_height="0dp"/>
|
||||||
|
<LinearLayout
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:orientation="vertical"
|
||||||
|
android:layout_marginBottom="15dp"
|
||||||
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
|
app:layout_constraintTop_toTopOf="parent">
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
android:id="@+id/war_order_close"
|
android:id="@+id/war_order_close"
|
||||||
@ -123,23 +140,37 @@
|
|||||||
<TextView
|
<TextView
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginStart="10dp"
|
|
||||||
android:layout_marginEnd="10dp"
|
|
||||||
android:layout_gravity="center"
|
android:layout_gravity="center"
|
||||||
|
android:layout_marginStart="10dp"
|
||||||
android:layout_marginTop="12dp"
|
android:layout_marginTop="12dp"
|
||||||
|
android:layout_marginEnd="10dp"
|
||||||
android:text="@string/has_reached_level_after_opening"
|
android:text="@string/has_reached_level_after_opening"
|
||||||
android:textColor="#0D21B2"
|
android:textColor="#0D21B2"
|
||||||
android:textSize="13sp" />
|
android:textSize="13sp" />
|
||||||
|
|
||||||
<Button
|
<LinearLayout
|
||||||
android:id="@+id/button_war_order"
|
android:id="@+id/button_war_order"
|
||||||
android:layout_width="150dp"
|
android:layout_width="150dp"
|
||||||
android:layout_height="48dp"
|
android:layout_height="48dp"
|
||||||
android:textSize="15sp"
|
|
||||||
android:textColor="@color/white"
|
|
||||||
android:textStyle="bold"
|
|
||||||
android:gravity="center"
|
|
||||||
android:layout_gravity="center"
|
android:layout_gravity="center"
|
||||||
android:layout_marginTop="10dp"
|
android:layout_marginTop="10dp"
|
||||||
android:background="@mipmap/button_war_order" />
|
android:background="@mipmap/button_war_order"
|
||||||
|
android:gravity="center">
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/button_war_order_text"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="match_parent"
|
||||||
|
android:gravity="center"
|
||||||
|
android:textColor="@color/white"
|
||||||
|
android:textSize="15sp"
|
||||||
|
android:textStyle="bold"
|
||||||
|
tools:text="123" />
|
||||||
|
|
||||||
|
<ImageView
|
||||||
|
android:layout_width="20dp"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:src="@mipmap/diamond" />
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
</LinearLayout>
|
||||||
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
@ -185,7 +185,7 @@ public class BattlePassMissionAdapter extends RecyclerView.Adapter<BattlePassMis
|
|||||||
.getBattlePassTaskOver(String.valueOf(task.getId()), new HttpCallback<HttpCallbackModel>() {
|
.getBattlePassTaskOver(String.valueOf(task.getId()), new HttpCallback<HttpCallbackModel>() {
|
||||||
@Override
|
@Override
|
||||||
public void onSuccess(HttpCallbackModel data) {
|
public void onSuccess(HttpCallbackModel data) {
|
||||||
ToastUtil.show(data.getCode() + "|" + data.getMsg());
|
ToastUtil.show( data.getMsg());
|
||||||
if (onItemClickListener != null) {
|
if (onItemClickListener != null) {
|
||||||
onItemClickListener.onItemClick(task, data.getCode());
|
onItemClickListener.onItemClick(task, data.getCode());
|
||||||
}
|
}
|
||||||
|
@ -192,6 +192,9 @@ public class BattlePassRewardAdapter extends RecyclerView.Adapter<BattlePassRewa
|
|||||||
//ToastUtil.show("锁了");
|
//ToastUtil.show("锁了");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if(reward.getReceived()==2){
|
||||||
|
return;
|
||||||
|
}
|
||||||
switch (reward.getLiveBattlePassTypeId()){
|
switch (reward.getLiveBattlePassTypeId()){
|
||||||
case 1:
|
case 1:
|
||||||
if(userType.getBattlePassUserRecords1()==1){
|
if(userType.getBattlePassUserRecords1()==1){
|
||||||
|
@ -22,15 +22,15 @@
|
|||||||
android:layout_width="0dp"
|
android:layout_width="0dp"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginStart="8dp"
|
android:layout_marginStart="8dp"
|
||||||
android:layout_marginTop="18dp"
|
android:layout_marginTop="10dp"
|
||||||
android:text="每日簽到(0/1)"
|
android:text="每日簽到(0/1)\nnn123"
|
||||||
android:textColor="#F2F9FF"
|
android:textColor="#F2F9FF"
|
||||||
android:textStyle="bold"
|
android:textStyle="bold"
|
||||||
app:autoSizeMaxTextSize="14sp"
|
app:autoSizeMaxTextSize="14sp"
|
||||||
app:autoSizeMinTextSize="5sp"
|
app:autoSizeMinTextSize="5sp"
|
||||||
app:autoSizeStepGranularity="1sp"
|
app:autoSizeStepGranularity="1sp"
|
||||||
app:autoSizeTextType="uniform"
|
app:autoSizeTextType="uniform"
|
||||||
android:maxLines="1"
|
android:maxLines="2"
|
||||||
app:layout_constraintEnd_toStartOf="@+id/submit"
|
app:layout_constraintEnd_toStartOf="@+id/submit"
|
||||||
app:layout_constraintStart_toEndOf="@+id/icon"
|
app:layout_constraintStart_toEndOf="@+id/icon"
|
||||||
app:layout_constraintTop_toTopOf="parent" />
|
app:layout_constraintTop_toTopOf="parent" />
|
||||||
@ -38,13 +38,19 @@
|
|||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/content"
|
android:id="@+id/content"
|
||||||
android:layout_width="0dp"
|
android:layout_width="0dp"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="0dp"
|
||||||
android:layout_marginStart="8dp"
|
android:layout_marginStart="8dp"
|
||||||
android:layout_marginTop="10dp"
|
android:layout_marginTop="2dp"
|
||||||
android:text="獎勵100經驗值/次"
|
android:text="獎勵100經驗值/次\n123"
|
||||||
android:textColor="#F2F9FF"
|
android:textColor="#F2F9FF"
|
||||||
android:textSize="12sp"
|
android:textSize="12sp"
|
||||||
app:layout_constraintEnd_toStartOf="@+id/submit"
|
app:autoSizeMaxTextSize="14sp"
|
||||||
|
app:autoSizeMinTextSize="5sp"
|
||||||
|
app:autoSizeStepGranularity="1sp"
|
||||||
|
app:autoSizeTextType="uniform"
|
||||||
|
android:maxLines="2"
|
||||||
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
|
app:layout_constraintEnd_toStartOf="@id/submit"
|
||||||
app:layout_constraintStart_toEndOf="@+id/icon"
|
app:layout_constraintStart_toEndOf="@+id/icon"
|
||||||
app:layout_constraintTop_toBottomOf="@+id/title" />
|
app:layout_constraintTop_toBottomOf="@+id/title" />
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user