Commit 70732e24 authored by fallenstardust's avatar fallenstardust

星数改为直观数字

parent 65cc26d8
......@@ -8,7 +8,7 @@ android {
applicationId "cn.garymb.ygomobile"
minSdkVersion 16
targetSdkVersion 22
versionCode 33010604
versionCode 33010605
versionName "3.3.1"
flavorDimensions "versionCode"
vectorDrawables.useSupportLibrary = true
......
......@@ -110,10 +110,10 @@ public class CardListAdapter extends BaseRecyclerAdapterPlus<Card, ViewHolder> i
holder.cardLevel.setVisibility(View.INVISIBLE);
}
// holder.view_bar.setVisibility(View.VISIBLE);
String star = "";
for (int i = 0; i < item.getStar(); i++) {
String star = "★"+ item.getStar();
/*for (int i = 0; i < item.getStar(); i++) {
star += "★";
}
}*/
holder.cardLevel.setText(star);
if (item.isType(CardType.Xyz)) {
holder.cardLevel.setTextColor(getColor(R.color.star_rank));
......
......@@ -196,10 +196,10 @@ public class CardDetail extends BaseAdapterPlus.BaseViewHolder {
atkdefView.setVisibility(View.VISIBLE);
monsterlayout.setVisibility(View.VISIBLE);
race.setVisibility(View.VISIBLE);
String star = "";
for (int i = 0; i < cardInfo.getStar(); i++) {
String star = "★"+ cardInfo.getStar();
/* for (int i = 0; i < cardInfo.getStar(); i++) {
star += "★";
}
}*/
level.setText(star);
if (cardInfo.isType(CardType.Xyz)) {
level.setTextColor(context.getResources().getColor(R.color.star_rank));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment