fg_patient_cardview.xml
4.26 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
<?xml version="1.0" encoding="utf-8"?>
<androidx.cardview.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="wrap_content"
xmlns:card_view="http://schemas.android.com/apk/res-auto"
android:id="@+id/card_layout"
android:foreground="?selectableItemBackground"
card_view:cardBackgroundColor="@color/color_accent"
card_view:cardCornerRadius="12dp"
card_view:cardElevation="3dp"
android:layout_margin="5dp"
>
<androidx.constraintlayout.widget.ConstraintLayout
android:id="@+id/card_backgroud"
android:layout_width="match_parent"
android:layout_height="94dp">
<LinearLayout
android:id="@+id/linear_layout"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
card_view:layout_constraintBottom_toBottomOf="parent"
card_view:layout_constraintEnd_toStartOf="@id/guideline2"
card_view:layout_constraintHorizontal_bias="0"
card_view:layout_constraintStart_toStartOf="parent"
card_view:layout_constraintTop_toTopOf="parent"
card_view:layout_constraintVertical_bias="0.5">
<CheckBox
android:id="@+id/checkBox"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:theme="@style/checkBoxStyle"
android:visibility="gone" />
</LinearLayout>
<TextView
android:id="@+id/all_patient_txt_name"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:text="@string/patient_name"
android:textSize="25sp"
card_view:layout_constraintBottom_toBottomOf="@id/linear_layout"
card_view:layout_constraintEnd_toStartOf="@id/guideline2"
card_view:layout_constraintHorizontal_bias="0.0"
card_view:layout_constraintStart_toEndOf="@id/guideline"
card_view:layout_constraintTop_toTopOf="parent"
card_view:layout_constraintVertical_bias="0.285" />
<androidx.constraintlayout.widget.Guideline
android:id="@+id/guideline"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="vertical"
card_view:layout_constraintGuide_percent="0.04" />
<androidx.constraintlayout.widget.Guideline
android:id="@+id/guideline2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="vertical"
card_view:layout_constraintGuide_percent="0.96" />
<com.google.android.material.chip.Chip
android:id="@+id/cholesterol_chip"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="45dp"
android:layout_marginTop="8dp"
android:layout_marginEnd="267dp"
android:checkable="true"
android:text="@string/cholesterol"
card_view:chipIcon="@drawable/cardv_grey_bg"
card_view:layout_constraintBottom_toBottomOf="parent"
card_view:layout_constraintEnd_toEndOf="parent"
card_view:layout_constraintStart_toStartOf="parent"
card_view:layout_constraintTop_toBottomOf="@+id/all_patient_txt_name" />
<com.google.android.material.chip.Chip
android:id="@+id/blood_pressure_chip"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="25dp"
android:layout_marginTop="8dp"
android:layout_marginEnd="100dp"
android:checkable="true"
android:text="@string/blood_pressure"
card_view:chipIcon="@drawable/cardv_grey_bg"
card_view:layout_constraintEnd_toEndOf="parent"
card_view:layout_constraintStart_toEndOf="@+id/cholesterol_chip"
card_view:layout_constraintTop_toBottomOf="@+id/all_patient_txt_name" />
</androidx.constraintlayout.widget.ConstraintLayout>
</androidx.cardview.widget.CardView>