04b509651b
- Created a method to update the QR code when the user updates the Amount text field information, using RxJava debounce to avoid calls while the user is still typing. - Created a method to remove the QR when there is no Asset selected.
97 lines
No EOL
4 KiB
XML
97 lines
No EOL
4 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:paddingTop="@dimen/activity_vertical_margin"
|
|
android:paddingBottom="@dimen/activity_vertical_margin"
|
|
android:paddingStart="@dimen/activity_horizontal_margin"
|
|
android:paddingEnd="@dimen/activity_horizontal_margin"
|
|
tools:context=".fragments.ReceiveTransactionFragment">
|
|
|
|
<androidx.constraintlayout.widget.Guideline
|
|
android:id="@+id/centeredVerticalGuideline"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical"
|
|
app:layout_constraintGuide_percent="0.5"/>
|
|
|
|
<com.google.android.material.textfield.TextInputLayout
|
|
android:id="@+id/tilAmount"
|
|
style="@style/Widget.Bitsy.TextInputLayout"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:hint="@string/text__amount"
|
|
android:layout_marginEnd="12dp"
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintEnd_toStartOf="@id/centeredVerticalGuideline">
|
|
|
|
<com.google.android.material.textfield.TextInputEditText
|
|
android:id="@+id/tietAmount"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:maxLines="1"
|
|
android:inputType="numberDecimal"/>
|
|
|
|
</com.google.android.material.textfield.TextInputLayout>
|
|
|
|
<com.google.android.material.textfield.TextInputLayout
|
|
style="@style/Widget.Bitsy.TextInputLayout"
|
|
android:layout_width="0dp"
|
|
android:layout_height="0dp"
|
|
android:layout_marginStart="12dp"
|
|
android:hint="@string/text__asset"
|
|
app:layout_constraintTop_toTopOf="@id/tilAmount"
|
|
app:layout_constraintBottom_toBottomOf="@id/tilAmount"
|
|
app:layout_constraintStart_toEndOf="@id/centeredVerticalGuideline"
|
|
app:layout_constraintEnd_toEndOf="parent">
|
|
|
|
<cy.agorise.bitsybitshareswallet.views.MyTextInputAutoCompleteTextView
|
|
android:id="@+id/actvAsset"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:paddingStart="12dp"
|
|
android:paddingEnd="8dp"
|
|
android:maxLines="1"
|
|
android:lines="1"
|
|
android:imeOptions="actionDone"/>
|
|
|
|
</com.google.android.material.textfield.TextInputLayout>
|
|
|
|
<ImageView
|
|
android:id="@+id/ivQR"
|
|
android:layout_width="0dp"
|
|
android:layout_height="0dp"
|
|
android:layout_marginTop="@dimen/spacing_different_topic"
|
|
android:layout_marginBottom="@dimen/spacing_different_topic"
|
|
android:background="@drawable/camera_view_background"
|
|
app:layout_constraintDimensionRatio="1:1"
|
|
app:layout_constraintTop_toBottomOf="@id/tilAmount"
|
|
app:layout_constraintBottom_toTopOf="@id/tvPleasePay"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintEnd_toEndOf="parent"/>
|
|
|
|
<TextView
|
|
android:id="@+id/tvPleasePay"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:maxLines="1"
|
|
tools:text="Please Pay: 12.25316 BTS"
|
|
android:textAppearance="@style/TextAppearance.Bitsy.Body1"
|
|
android:textAlignment="center"
|
|
app:layout_constraintBottom_toTopOf="@id/tvTo"/>
|
|
|
|
<TextView
|
|
android:id="@+id/tvTo"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:maxLines="1"
|
|
tools:text="To: seventest-3"
|
|
android:textAppearance="@style/TextAppearance.Bitsy.Body1"
|
|
android:textAlignment="center"
|
|
app:layout_constraintBottom_toBottomOf="parent"/>
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout> |