worker card
This commit is contained in:
parent
74d4194443
commit
5aa6ed2da6
|
|
@ -0,0 +1,16 @@
|
||||||
|
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
|
<item android:id="@android:id/background">
|
||||||
|
<shape>
|
||||||
|
<corners android:radius="5dp" />
|
||||||
|
<solid android:color="#C8C8C8" /> <!-- Background color -->
|
||||||
|
</shape>
|
||||||
|
</item>
|
||||||
|
<item android:id="@android:id/progress">
|
||||||
|
<clip>
|
||||||
|
<shape>
|
||||||
|
<corners android:radius="5dp" />
|
||||||
|
<solid android:color="#4CAF50" /> <!-- Progress color -->
|
||||||
|
</shape>
|
||||||
|
</clip>
|
||||||
|
</item>
|
||||||
|
</layer-list>
|
||||||
|
|
@ -0,0 +1,102 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
xmlns:tools="http://schemas.android.com/tools"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="match_parent">
|
||||||
|
<LinearLayout
|
||||||
|
android:id="@+id/workerCard"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="60dp"
|
||||||
|
android:orientation="vertical"
|
||||||
|
android:background="@drawable/price_card_background"
|
||||||
|
android:padding="2dp"
|
||||||
|
tools:ignore="MissingConstraints">
|
||||||
|
<LinearLayout
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="24dp"
|
||||||
|
android:orientation="horizontal"
|
||||||
|
android:padding="2dp"
|
||||||
|
android:layout_marginBottom="2dp">
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/workerCardPair"
|
||||||
|
android:layout_width="140dp"
|
||||||
|
android:layout_height="24dp"
|
||||||
|
android:text="BCC/USDT"
|
||||||
|
android:textColor="@color/secondary_text_color"
|
||||||
|
android:textAlignment="center"
|
||||||
|
android:textSize="18sp"
|
||||||
|
android:textStyle="bold" />
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/workerCardSafetyOrders"
|
||||||
|
android:layout_width="50dp"
|
||||||
|
android:layout_height="24dp"
|
||||||
|
android:text="45/45"
|
||||||
|
android:textColor="@color/secondary_text_color"
|
||||||
|
android:textAlignment="center"
|
||||||
|
android:textSize="16sp" />
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/workerCardPercentageToDeal"
|
||||||
|
android:layout_width="64dp"
|
||||||
|
android:layout_height="24dp"
|
||||||
|
android:text="100.69%"
|
||||||
|
android:textColor="@color/secondary_text_color"
|
||||||
|
android:textAlignment="center"
|
||||||
|
android:textSize="16sp" />
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/workerCardUptime"
|
||||||
|
android:layout_width="82dp"
|
||||||
|
android:layout_height="24dp"
|
||||||
|
android:text="900:35:30:20"
|
||||||
|
android:textColor="@color/secondary_text_color"
|
||||||
|
android:textAlignment="center"
|
||||||
|
android:textSize="12sp" />
|
||||||
|
</LinearLayout>
|
||||||
|
<LinearLayout
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="24dp"
|
||||||
|
android:orientation="horizontal"
|
||||||
|
android:padding="2dp"
|
||||||
|
android:layout_marginBottom="2dp">
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/workerCardNextSoPrice"
|
||||||
|
android:layout_width="76dp"
|
||||||
|
android:layout_height="16dp"
|
||||||
|
android:text="0.123456789"
|
||||||
|
android:textColor="@color/red"
|
||||||
|
android:textAlignment="center"
|
||||||
|
android:layout_gravity="center"
|
||||||
|
android:textSize="12sp"
|
||||||
|
android:textStyle="normal" />
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/workerCardCurrentPrice"
|
||||||
|
android:layout_width="90dp"
|
||||||
|
android:layout_height="24dp"
|
||||||
|
android:text="0.123456789"
|
||||||
|
android:textColor="@color/secondary_text_color"
|
||||||
|
android:textAlignment="center"
|
||||||
|
android:textSize="16sp"
|
||||||
|
android:textStyle="normal" />
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/workerCardTakeProfitPrice"
|
||||||
|
android:layout_width="76dp"
|
||||||
|
android:layout_height="16dp"
|
||||||
|
android:text="0.123456789"
|
||||||
|
android:textColor="@color/dark_green"
|
||||||
|
android:textAlignment="center"
|
||||||
|
android:layout_gravity="center"
|
||||||
|
android:textSize="12sp"
|
||||||
|
android:textStyle="normal" />
|
||||||
|
|
||||||
|
<ProgressBar
|
||||||
|
android:id="@+id/workerCardProgressBar"
|
||||||
|
style="?android:attr/progressBarStyleHorizontal"
|
||||||
|
android:layout_width="0dp"
|
||||||
|
android:layout_height="14dp"
|
||||||
|
android:layout_gravity="center"
|
||||||
|
android:max="100"
|
||||||
|
android:progress="50"
|
||||||
|
android:layout_weight="1"
|
||||||
|
android:progressDrawable="@drawable/worker_progress_bar"/>
|
||||||
|
</LinearLayout>
|
||||||
|
</LinearLayout>
|
||||||
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||||
Loading…
Reference in New Issue