item_status_card.xml
1.51 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<?xml version="1.0" encoding="utf-8"?>
<androidx.cardview.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:cardBackgroundColor="#1A1A24"
app:cardCornerRadius="16dp"
app:cardElevation="0dp">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:padding="14dp">
<!-- Dot indicator -->
<View
android:id="@+id/statusDot"
android:layout_width="10dp"
android:layout_height="10dp"
android:background="@drawable/bg_status_dot"
android:backgroundTint="#FF5555" />
<TextView
android:id="@+id/tvCardTitle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="10dp"
android:text="Service"
android:textColor="#FFFFFF"
android:textSize="13sp"
android:textStyle="bold" />
<TextView
android:id="@+id/tvCardStatus"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="2dp"
android:text="Inactive"
android:textColor="#888888"
android:textSize="11sp" />
</LinearLayout>
</androidx.cardview.widget.CardView>