Hide blank categories in details activity
This commit is contained in:
parent
460eb1aa14
commit
db013dab1e
@ -270,16 +270,19 @@ public class CurrencyDetailsActivity extends AppCompatActivity {
|
|||||||
.setMovementMethod(LinkMovementMethod.getInstance());
|
.setMovementMethod(LinkMovementMethod.getInstance());
|
||||||
((TextView) findViewById(R.id.txtViewPercentageCoinEmited))
|
((TextView) findViewById(R.id.txtViewPercentageCoinEmited))
|
||||||
.setText("Percentage of coin emited : " + numberConformer(currency.getMinedCoinSupply() / currency.getMaxCoinSupply() * 100) + "%");
|
.setText("Percentage of coin emited : " + numberConformer(currency.getMinedCoinSupply() / currency.getMaxCoinSupply() * 100) + "%");
|
||||||
|
|
||||||
if(currency.getMarketCapitalization() != 0)
|
if(currency.getMarketCapitalization() != 0)
|
||||||
{
|
{
|
||||||
((TextView) findViewById(R.id.txtViewMarketCapitalization))
|
((TextView) findViewById(R.id.txtViewMarketCapitalization))
|
||||||
.setText(PlaceholderManager.getValueString(numberConformer(currency.getMarketCapitalization()), this));
|
.setText(PlaceholderManager.getValueString(numberConformer(currency.getMarketCapitalization()), this));
|
||||||
|
findViewById(R.id.linearMarketCap).setVisibility(View.VISIBLE);
|
||||||
}
|
}
|
||||||
|
|
||||||
if(currency.getRank() != 0)
|
if(currency.getRank() != 0)
|
||||||
{
|
{
|
||||||
((TextView) findViewById(R.id.txtViewRank))
|
((TextView) findViewById(R.id.txtViewRank))
|
||||||
.setText(String.valueOf(currency.getRank()));
|
.setText(String.valueOf(currency.getRank()));
|
||||||
|
findViewById(R.id.linearRank).setVisibility(View.VISIBLE);
|
||||||
}
|
}
|
||||||
|
|
||||||
if(currency.getMaxCoinSupply() == 0)
|
if(currency.getMaxCoinSupply() == 0)
|
||||||
|
@ -447,10 +447,12 @@
|
|||||||
android:baselineAligned="false">
|
android:baselineAligned="false">
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
|
android:id="@+id/linearMarketCap"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:orientation="vertical"
|
android:orientation="vertical"
|
||||||
android:layout_weight="0.5">
|
android:layout_weight="0.5"
|
||||||
|
android:visibility="gone">
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
@ -467,10 +469,12 @@
|
|||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
|
android:id="@+id/linearRank"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:orientation="vertical"
|
android:orientation="vertical"
|
||||||
android:layout_weight="0.5">
|
android:layout_weight="0.5"
|
||||||
|
android:visibility="gone">
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
|
Loading…
Reference in New Issue
Block a user