| <?xml version="1.0" encoding="utf-8"?> |
| <layout> |
| |
| <data> |
| |
| <variable |
| name="account" |
| type="org.mifos.openbanking.viewModel.model.AccountModel" /> |
| |
| <variable |
| name="clickHandler" |
| type="org.mifos.openbanking.transfer.TransferFragment" /> |
| |
| </data> |
| |
| <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" |
| xmlns:app="http://schemas.android.com/apk/res-auto" |
| android:id="@+id/transferLayout" |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:gravity="center" |
| android:orientation="vertical" |
| android:padding="20dp"> |
| |
| <TextView |
| android:id="@+id/tvBankName" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:fontFamily="@font/roboto_regular" |
| android:text="@{account.bankName}" |
| android:textColor="@color/grey" |
| android:textSize="16sp" /> |
| |
| <TextView |
| android:id="@+id/tvAccountId" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:fontFamily="@font/roboto_regular" |
| android:text="@{account.accountId.toUpperCase()}" |
| android:textColor="@color/dark_grey" |
| android:textSize="24sp" /> |
| |
| <ImageView |
| android:layout_width="wrap_content" |
| android:layout_height="25dp" |
| android:layout_marginTop="15dp" |
| android:adjustViewBounds="true" |
| android:src="@android:drawable/arrow_down_float" |
| android:tint="@color/colorPrimary" /> |
| |
| <ImageView |
| android:layout_width="wrap_content" |
| android:layout_height="25dp" |
| android:layout_marginBottom="15dp" |
| android:adjustViewBounds="true" |
| android:src="@android:drawable/arrow_down_float" |
| android:tint="@color/colorPrimary" /> |
| |
| <com.google.android.material.textfield.TextInputLayout |
| style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox" |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:layout_marginBottom="10dp"> |
| |
| <com.google.android.material.textfield.TextInputEditText |
| android:id="@+id/et_account" |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:fontFamily="@font/roboto_regular" |
| android:hint="@string/account_id" |
| android:inputType="text" |
| android:textSize="18sp" /> |
| </com.google.android.material.textfield.TextInputLayout> |
| |
| <com.google.android.material.textfield.TextInputLayout |
| style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox.ExposedDropdownMenu" |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:layout_marginBottom="10dp"> |
| |
| <androidx.appcompat.widget.AppCompatAutoCompleteTextView |
| android:id="@+id/et_bank" |
| style="@style/Widget.MaterialComponents.AutoCompleteTextView.OutlinedBox" |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:completionThreshold="0" |
| android:fontFamily="@font/roboto_regular" |
| android:hint="@string/bank_name" |
| android:inputType="text" |
| android:textSize="18sp" /> |
| </com.google.android.material.textfield.TextInputLayout> |
| |
| <com.google.android.material.textfield.TextInputLayout |
| style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox" |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:layout_marginBottom="10dp" |
| app:prefixText="£ " |
| app:prefixTextAppearance="@style/EuroSignTextPrefix"> |
| |
| <com.google.android.material.textfield.TextInputEditText |
| android:id="@+id/et_amount" |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:fontFamily="@font/roboto_regular" |
| android:hint="@string/amount" |
| android:inputType="numberDecimal" |
| android:textSize="18sp" /> |
| </com.google.android.material.textfield.TextInputLayout> |
| |
| <com.google.android.material.textfield.TextInputLayout |
| style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox" |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:layout_marginBottom="10dp"> |
| |
| <com.google.android.material.textfield.TextInputEditText |
| android:id="@+id/et_description" |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:fontFamily="@font/roboto_regular" |
| android:hint="@string/description" |
| android:inputType="text" |
| android:textSize="18sp" /> |
| </com.google.android.material.textfield.TextInputLayout> |
| |
| <LinearLayout |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:orientation="horizontal"> |
| |
| <Button |
| android:id="@+id/btn_dismiss" |
| style="@style/Widget.MaterialComponents.Button.OutlinedButton" |
| android:layout_width="0dp" |
| android:layout_height="wrap_content" |
| android:layout_gravity="center" |
| android:layout_marginRight="10dp" |
| android:layout_weight="3" |
| android:fontFamily="@font/roboto_bold" |
| android:onClick="@{clickHandler::onCancelClicked}" |
| android:text="@string/cancel" |
| android:textSize="18sp" /> |
| |
| <com.facebook.shimmer.ShimmerFrameLayout |
| android:id="@+id/shimmer_proceed" |
| android:layout_width="0dp" |
| android:layout_height="wrap_content" |
| android:layout_weight="5"> |
| |
| <Button |
| android:id="@+id/btn_proceed" |
| style="@style/Widget.MaterialComponents.Button" |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:layout_gravity="center" |
| android:fontFamily="@font/roboto_bold" |
| android:onClick="@{clickHandler::onProceedClicked}" |
| android:text="@string/proceed" |
| android:textSize="18sp" /> |
| |
| </com.facebook.shimmer.ShimmerFrameLayout> |
| |
| </LinearLayout> |
| |
| </LinearLayout> |
| </layout> |