spacing in worker_card
This commit is contained in:
parent
0028f3285d
commit
6c79979f72
|
|
@ -71,7 +71,7 @@ public class WorkerCardAdapter{
|
||||||
String percentageToDisplay = String.format(Locale.ROOT, "%.2f",abs(worker.getTakeProfitPrice()- worker.getPrice())/worker.getPrice()*100)+"%";
|
String percentageToDisplay = String.format(Locale.ROOT, "%.2f",abs(worker.getTakeProfitPrice()- worker.getPrice())/worker.getPrice()*100)+"%";
|
||||||
percentage.setText(percentageToDisplay);
|
percentage.setText(percentageToDisplay);
|
||||||
|
|
||||||
String safetyOrdersToDisplay = worker.getAmountOfSafetyOrders()-1 + " / " + worker.getMaxSafetyOrders();
|
String safetyOrdersToDisplay = worker.getAmountOfSafetyOrders()-1 + "/" + worker.getMaxSafetyOrders();
|
||||||
safetyOrders.setText(safetyOrdersToDisplay);
|
safetyOrders.setText(safetyOrdersToDisplay);
|
||||||
|
|
||||||
uptime.setText(formatSeconds(worker.getUptime()));
|
uptime.setText(formatSeconds(worker.getUptime()));
|
||||||
|
|
|
||||||
|
|
@ -28,7 +28,7 @@
|
||||||
android:textStyle="bold" />
|
android:textStyle="bold" />
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/workerCardSafetyOrders"
|
android:id="@+id/workerCardSafetyOrders"
|
||||||
android:layout_width="50dp"
|
android:layout_width="54dp"
|
||||||
android:layout_height="24dp"
|
android:layout_height="24dp"
|
||||||
android:text="45/45"
|
android:text="45/45"
|
||||||
android:textColor="@color/secondary_text_color"
|
android:textColor="@color/secondary_text_color"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue