diff --git a/common/src/main/java/com/yunbao/common/dialog/OrderLevelPopupWindow.java b/common/src/main/java/com/yunbao/common/dialog/OrderLevelPopupWindow.java index f8641471d..e9d0ae11c 100644 --- a/common/src/main/java/com/yunbao/common/dialog/OrderLevelPopupWindow.java +++ b/common/src/main/java/com/yunbao/common/dialog/OrderLevelPopupWindow.java @@ -22,7 +22,7 @@ import java.math.BigDecimal; * 战令等级 经验 */ public class OrderLevelPopupWindow extends CenterPopupView { - private TextView orderLevel, orderLevelDiamond, balanceDiamond, current; + private TextView orderLevel, orderLevelDiamond, balanceDiamond, current,expText; private int currentExperience, totalExperience;//当前经验,全部经验 private String buyExp = "100", currentLevel, balance; private ProgressBar progressBar; @@ -55,9 +55,11 @@ public class OrderLevelPopupWindow extends CenterPopupView { balanceDiamond = findViewById(R.id.balance_diamond); current = findViewById(R.id.current); progressBar = findViewById(R.id.progressBar); + expText = findViewById(R.id.exp_text); orderLevel.setText(buyExp); progressBar.setMax(totalExperience); progressBar.setProgress(currentExperience); + expText.setText(String.format("%s/%s", currentExperience, totalExperience)); current.setText(String.format("Lv%s", currentLevel)); balanceDiamond.setText(balance); findViewById(R.id.sub).setOnClickListener(new OnClickListener() { diff --git a/common/src/main/res/layout/order_level_popup.xml b/common/src/main/res/layout/order_level_popup.xml index 435ecde21..987c2ae67 100644 --- a/common/src/main/res/layout/order_level_popup.xml +++ b/common/src/main/res/layout/order_level_popup.xml @@ -1,5 +1,7 @@ - + android:layout_height="wrap_content" + android:layout_marginStart="7dp"> + + + +