|
10 | 10 | tools:context=".MainActivity">
|
11 | 11 |
|
12 | 12 | <com.devzone.checkabletextview.CheckableTextView
|
13 |
| - android:layout_marginTop="20dp" |
14 |
| - android:id="@+id/checkedTV" |
15 |
| - app:ctv_TextStyle="@style/TextAppearance.General" |
16 |
| - app:ctv_IconTint="@color/colorPrimary" |
17 |
| - app:ctv_IconChecked="false" |
18 |
| - android:background="#e8e8e8" |
19 |
| - app:ctv_Text="@string/app_name" |
20 |
| - app:ctv_AnimDuration="1250" |
21 |
| - app:ctv_AnimType="translate" |
22 |
| - android:layout_width="match_parent" |
23 |
| - android:layout_height="wrap_content"/> |
| 13 | + android:id="@+id/checkedTV" |
| 14 | + android:layout_width="match_parent" |
| 15 | + android:layout_height="wrap_content" |
| 16 | + android:layout_marginTop="20dp" |
| 17 | + android:background="#e8e8e8" |
| 18 | + app:ctv_AnimDuration="1250" |
| 19 | + app:ctv_AnimType="translate" |
| 20 | + app:ctv_IconChecked="false" |
| 21 | + app:ctv_IconTint="@color/colorPrimary" |
| 22 | + app:ctv_RippleFillEnabled="true" |
| 23 | + app:ctv_Text="@string/app_name" |
| 24 | + app:ctv_TextStyle="@style/TextAppearance.General" /> |
24 | 25 |
|
25 | 26 |
|
26 | 27 | <androidx.appcompat.widget.AppCompatTextView
|
27 |
| - android:layout_marginTop="5dp" |
28 |
| - android:id="@+id/stateTV" |
29 |
| - android:text="Checked" |
30 |
| - android:padding="5dp" |
31 |
| - android:gravity="center" |
32 |
| - android:layout_gravity="center_horizontal" |
33 |
| - style="@style/TextAppearance.General" |
34 |
| - android:layout_width="wrap_content" |
35 |
| - android:layout_height="wrap_content"/> |
| 28 | + android:id="@+id/stateTV" |
| 29 | + style="@style/TextAppearance.General" |
| 30 | + android:layout_width="wrap_content" |
| 31 | + android:layout_height="wrap_content" |
| 32 | + android:layout_gravity="center_horizontal" |
| 33 | + android:layout_marginTop="5dp" |
| 34 | + android:gravity="center" |
| 35 | + android:padding="5dp" |
| 36 | + android:text="Checked" /> |
36 | 37 |
|
37 |
| - <com.devzone.checkabletextview.CheckableTextView |
38 |
| - android:layout_marginTop="20dp" |
| 38 | + <com.google.android.material.card.MaterialCardView |
| 39 | + android:layout_width="match_parent" |
| 40 | + android:layout_height="wrap_content" |
| 41 | + android:layout_marginTop="20dp" |
| 42 | + app:cardCornerRadius="5dp" |
| 43 | + app:cardUseCompatPadding="true"> |
| 44 | + |
| 45 | + <com.devzone.checkabletextview.CheckableTextView |
39 | 46 | android:background="#e8e8e8"
|
| 47 | + android:layout_height="wrap_content" |
40 | 48 | android:id="@+id/checkedSecondTV"
|
41 | 49 | app:ctv_TextStyle="@style/TextAppearance.General"
|
42 | 50 | app:ctv_IconChecked="false"
|
43 | 51 | app:ctv_AnimType="scale"
|
44 | 52 | app:ctv_Icon="@drawable/ic_cancel_custom_vector"
|
45 | 53 | app:ctv_Text="@string/app_name"
|
46 | 54 | android:layout_width="match_parent"
|
47 |
| - android:layout_height="wrap_content"/> |
| 55 | + app:ctv_RippleFillEnabled="true" /> |
| 56 | + </com.google.android.material.card.MaterialCardView> |
48 | 57 |
|
49 | 58 |
|
50 | 59 | <androidx.appcompat.widget.AppCompatTextView
|
51 |
| - android:id="@+id/stateSecondTV" |
52 |
| - android:text="Checked" |
53 |
| - android:padding="5dp" |
54 |
| - android:layout_marginTop="5dp" |
55 |
| - android:layout_gravity="center_horizontal" |
56 |
| - style="@style/TextAppearance.General" |
57 |
| - android:gravity="center" |
58 |
| - android:layout_width="wrap_content" |
59 |
| - android:layout_height="wrap_content"/> |
| 60 | + android:id="@+id/stateSecondTV" |
| 61 | + style="@style/TextAppearance.General" |
| 62 | + android:layout_width="wrap_content" |
| 63 | + android:layout_height="wrap_content" |
| 64 | + android:layout_gravity="center_horizontal" |
| 65 | + android:layout_marginTop="5dp" |
| 66 | + android:gravity="center" |
| 67 | + android:padding="5dp" |
| 68 | + android:text="Checked" /> |
60 | 69 |
|
61 | 70 |
|
62 | 71 | <com.devzone.checkabletextview.CheckableTextView
|
63 |
| - android:layout_marginTop="20dp" |
64 |
| - android:background="#e8e8e8" |
65 |
| - android:id="@+id/checkedThirdTV" |
66 |
| - app:ctv_TextStyle="@style/TextAppearance.General" |
67 |
| - app:ctv_IconTint="@color/colorOrange" |
68 |
| - app:ctv_IconChecked="false" |
69 |
| - app:ctv_AnimType="fall_down" |
70 |
| - app:ctv_Text="@string/app_name" |
71 |
| - android:layout_width="match_parent" |
72 |
| - android:layout_height="wrap_content"/> |
| 72 | + android:id="@+id/checkedThirdTV" |
| 73 | + android:layout_width="match_parent" |
| 74 | + android:layout_height="wrap_content" |
| 75 | + android:layout_marginTop="20dp" |
| 76 | + android:background="#e8e8e8" |
| 77 | + app:ctv_AnimType="fall_down" |
| 78 | + app:ctv_IconChecked="false" |
| 79 | + app:ctv_IconTint="@color/colorOrange" |
| 80 | + app:ctv_RippleFillEnabled="true" |
| 81 | + app:ctv_Text="@string/app_name" |
| 82 | + app:ctv_TextStyle="@style/TextAppearance.General" /> |
73 | 83 |
|
74 | 84 |
|
75 | 85 | <androidx.appcompat.widget.AppCompatTextView
|
|
0 commit comments