|
1 | 1 | <?xml version="1.0" encoding="utf-8"?> |
2 | | -<layout xmlns:binding="http://schemas.android.com/tools"> |
| 2 | +<layout xmlns:android="http://schemas.android.com/apk/res/android" |
| 3 | + xmlns:app="http://schemas.android.com/apk/res-auto" |
| 4 | + xmlns:binding="http://schemas.android.com/tools"> |
3 | 5 |
|
4 | 6 | <data> |
5 | 7 | <import type="android.view.View" /> |
|
8 | 10 | type="com.dspread.pos.ui.payment.PaymentViewModel" /> |
9 | 11 | </data> |
10 | 12 |
|
11 | | - <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" |
12 | | - xmlns:app="http://schemas.android.com/apk/res-auto" |
| 13 | + <RelativeLayout |
13 | 14 | android:id="@+id/rel_sale_details" |
14 | 15 | android:layout_width="match_parent" |
15 | 16 | android:layout_height="match_parent" |
|
19 | 20 | <LinearLayout |
20 | 21 | android:layout_width="match_parent" |
21 | 22 | android:layout_height="match_parent" |
22 | | - android:gravity="center_vertical" |
| 23 | + android:gravity="center_horizontal" |
23 | 24 | android:orientation="vertical"> |
24 | 25 |
|
25 | 26 | <!-- amount display --> |
|
80 | 81 | android:visibility="@{viewModel.showPinpad ? View.GONE : View.VISIBLE}"/> |
81 | 82 | </RelativeLayout> |
82 | 83 |
|
83 | | - <!-- common AnimationView--> |
84 | | -<!-- android:visibility="@{viewModel.showPinpad ? View.GONE : View.VISIBLE}"--> |
| 84 | + |
| 85 | + |
| 86 | + <!-- card guide AnimationView--> |
85 | 87 | <com.airbnb.lottie.LottieAnimationView |
86 | 88 | android:id="@+id/animation_view" |
87 | 89 | android:layout_width="wrap_content" |
|
99 | 101 | android:layout_marginBottom="10dp" |
100 | 102 | android:gravity="center" |
101 | 103 | android:orientation="horizontal" |
102 | | - android:visibility="@{viewModel.showResultStatus ? View.GONE : View.VISIBLE}" |
| 104 | + android:visibility="@{viewModel.showResultStatus|| viewModel.cardsInsertedStatus ? View.GONE : View.VISIBLE}" |
103 | 105 | > |
104 | 106 |
|
105 | 107 | <ImageView |
|
203 | 205 | android:textStyle="bold" /> |
204 | 206 | </LinearLayout> |
205 | 207 | </LinearLayout> |
| 208 | + |
206 | 209 | </LinearLayout> |
| 210 | + <!-- card insert AnimationView--> |
207 | 211 | <com.airbnb.lottie.LottieAnimationView |
208 | | - android:visibility="@{viewModel.cardsInsertedStatus ? View.VISIBLE : View.GONE}" |
209 | | - android:layout_width="wrap_content" |
| 212 | + android:id="@+id/animation_view_insert" |
| 213 | + android:layout_width="match_parent" |
210 | 214 | android:layout_height="wrap_content" |
| 215 | + android:layout_gravity="bottom" |
211 | 216 | android:layout_marginLeft="10dp" |
212 | 217 | android:layout_marginRight="10dp" |
213 | | - android:layout_alignParentBottom="true" |
| 218 | + android:visibility="@{viewModel.cardsInsertedStatus ? View.VISIBLE : View.GONE}" |
214 | 219 | app:lottie_autoPlay="true" |
| 220 | + android:layout_alignParentBottom="true" |
215 | 221 | app:lottie_fileName="insert_icc_card.json" |
216 | 222 | app:lottie_imageAssetsFolder="iccimages/" |
217 | 223 | app:lottie_loop="false" /> |
|
0 commit comments