forked from thijooree/android
222 lines
8.9 KiB
XML
222 lines
8.9 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<androidx.core.widget.NestedScrollView
|
|
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">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical"
|
|
android:padding="16dp">
|
|
|
|
<TextView
|
|
android:id="@+id/tvTitle"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginBottom="16dp"
|
|
android:text="@string/contact_add"
|
|
android:textAppearance="?attr/textAppearanceTitleLarge" />
|
|
|
|
<!-- Save to (destination) -->
|
|
<com.google.android.material.textfield.TextInputLayout
|
|
android:id="@+id/tilDestination"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginBottom="12dp"
|
|
android:hint="@string/contact_save_to"
|
|
style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox.ExposedDropdownMenu">
|
|
|
|
<AutoCompleteTextView
|
|
android:id="@+id/actvDestination"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:inputType="none"
|
|
android:focusable="false" />
|
|
|
|
</com.google.android.material.textfield.TextInputLayout>
|
|
|
|
<!-- Account number / Favara ID -->
|
|
<com.google.android.material.textfield.TextInputLayout
|
|
android:id="@+id/tilAccount"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginBottom="12dp"
|
|
android:hint="@string/transfer_to"
|
|
style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox"
|
|
app:endIconMode="custom"
|
|
app:endIconDrawable="@android:drawable/ic_menu_search"
|
|
app:endIconContentDescription="@string/transfer_lookup_account">
|
|
|
|
<com.google.android.material.textfield.TextInputEditText
|
|
android:id="@+id/etAccount"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:inputType="text"
|
|
android:maxLines="1"
|
|
android:imeOptions="actionSearch" />
|
|
|
|
</com.google.android.material.textfield.TextInputLayout>
|
|
|
|
<!-- Lookup result card -->
|
|
<androidx.cardview.widget.CardView
|
|
android:id="@+id/cardResult"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginBottom="12dp"
|
|
android:visibility="gone"
|
|
app:cardCornerRadius="12dp"
|
|
app:cardElevation="2dp">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal"
|
|
android:padding="12dp"
|
|
android:gravity="center_vertical">
|
|
|
|
<ImageView
|
|
android:id="@+id/ivResultAvatar"
|
|
android:layout_width="40dp"
|
|
android:layout_height="40dp"
|
|
android:scaleType="centerCrop"
|
|
android:importantForAccessibility="no" />
|
|
|
|
<LinearLayout
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:orientation="vertical"
|
|
android:layout_marginStart="12dp">
|
|
|
|
<TextView
|
|
android:id="@+id/tvResultName"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:textAppearance="?attr/textAppearanceTitleSmall"
|
|
android:maxLines="1"
|
|
android:ellipsize="end" />
|
|
|
|
<TextView
|
|
android:id="@+id/tvResultBank"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:textAppearance="?attr/textAppearanceBodySmall"
|
|
android:textColor="?attr/colorOnSurfaceVariant"
|
|
android:maxLines="1"
|
|
android:ellipsize="end" />
|
|
|
|
</LinearLayout>
|
|
|
|
<ImageButton
|
|
android:id="@+id/btnClearResult"
|
|
android:layout_width="36dp"
|
|
android:layout_height="36dp"
|
|
android:background="?attr/selectableItemBackgroundBorderless"
|
|
android:src="@android:drawable/ic_menu_close_clear_cancel"
|
|
android:contentDescription="@string/transfer_clear_recipient" />
|
|
|
|
</LinearLayout>
|
|
|
|
</androidx.cardview.widget.CardView>
|
|
|
|
<!-- Alias -->
|
|
<com.google.android.material.textfield.TextInputLayout
|
|
android:id="@+id/tilAlias"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginBottom="12dp"
|
|
android:hint="@string/contact_alias"
|
|
style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox">
|
|
|
|
<com.google.android.material.textfield.TextInputEditText
|
|
android:id="@+id/etAlias"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:inputType="text"
|
|
android:maxLines="1" />
|
|
|
|
</com.google.android.material.textfield.TextInputLayout>
|
|
|
|
<!-- Currency (read-only) -->
|
|
<com.google.android.material.textfield.TextInputLayout
|
|
android:id="@+id/tilCurrency"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginBottom="12dp"
|
|
android:hint="@string/contact_currency"
|
|
style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox">
|
|
|
|
<com.google.android.material.textfield.TextInputEditText
|
|
android:id="@+id/etCurrency"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:focusable="false"
|
|
android:inputType="none" />
|
|
|
|
</com.google.android.material.textfield.TextInputLayout>
|
|
|
|
<!-- Image upload (MIB only) -->
|
|
<LinearLayout
|
|
android:id="@+id/layoutImage"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginBottom="12dp"
|
|
android:orientation="horizontal"
|
|
android:gravity="center_vertical"
|
|
android:visibility="gone">
|
|
|
|
<ImageView
|
|
android:id="@+id/ivContactImage"
|
|
android:layout_width="48dp"
|
|
android:layout_height="48dp"
|
|
android:scaleType="centerCrop"
|
|
android:importantForAccessibility="no"
|
|
/>
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
android:id="@+id/btnPickImage"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="12dp"
|
|
android:text="@string/contact_image"
|
|
style="@style/Widget.MaterialComponents.Button.OutlinedButton" />
|
|
|
|
</LinearLayout>
|
|
|
|
<!-- Group dropdown (MIB only) -->
|
|
<com.google.android.material.textfield.TextInputLayout
|
|
android:id="@+id/tilGroup"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginBottom="16dp"
|
|
android:hint="@string/contact_group"
|
|
android:visibility="gone"
|
|
style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox.ExposedDropdownMenu">
|
|
|
|
<AutoCompleteTextView
|
|
android:id="@+id/actvGroup"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:inputType="none"
|
|
android:focusable="false" />
|
|
|
|
</com.google.android.material.textfield.TextInputLayout>
|
|
|
|
<!-- Save button -->
|
|
<com.google.android.material.button.MaterialButton
|
|
android:id="@+id/btnSave"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/contact_save"
|
|
android:enabled="false" />
|
|
|
|
<Space
|
|
android:layout_width="match_parent"
|
|
android:layout_height="24dp" />
|
|
|
|
</LinearLayout>
|
|
|
|
</androidx.core.widget.NestedScrollView>
|