Used a TextInputLayout with a disabled TextInputEditText behind the Asset spinner in ReceiveTransactionFragment, so that it looks similar to the other fields (Amount and Asset AutoComplete).
This commit is contained in:
parent
f89878d6b9
commit
7fa1ed03c3
1 changed files with 33 additions and 18 deletions
|
@ -39,26 +39,39 @@
|
|||
|
||||
</com.google.android.material.textfield.TextInputLayout>
|
||||
|
||||
<com.google.android.material.textfield.TextInputLayout
|
||||
android:id="@+id/tilAssetSpinner"
|
||||
style="@style/Widget.Bitsy.TextInputLayout"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:hint="@string/text__asset"
|
||||
android:layout_marginStart="12dp"
|
||||
android:layout_marginEnd="@dimen/activity_horizontal_margin"
|
||||
app:layout_constraintTop_toTopOf="@id/tilAmount"
|
||||
app:layout_constraintStart_toEndOf="@id/centeredVerticalGuideline"
|
||||
app:layout_constraintEnd_toEndOf="parent">
|
||||
|
||||
<cy.agorise.bitsybitshareswallet.views.MyTextInputEditText
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:text=" "
|
||||
android:textAlignment="textEnd"
|
||||
android:enabled="false"
|
||||
android:maxLines="1"
|
||||
android:inputType="numberDecimal"/>
|
||||
|
||||
</com.google.android.material.textfield.TextInputLayout>
|
||||
|
||||
<Spinner
|
||||
android:id="@+id/spAsset"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="12dp"
|
||||
android:layout_marginStart="12dp"
|
||||
android:layout_marginEnd="@dimen/activity_horizontal_margin"
|
||||
app:layout_constraintTop_toTopOf="@+id/tilAmount"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toEndOf="@id/centeredVerticalGuideline"/>
|
||||
|
||||
<View
|
||||
android:id="@+id/vSpinner"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="1dp"
|
||||
android:layout_marginTop="12dp"
|
||||
android:background="@color/darkGray"
|
||||
app:layout_constraintTop_toBottomOf="@+id/spAsset"
|
||||
app:layout_constraintEnd_toEndOf="@+id/spAsset"
|
||||
app:layout_constraintStart_toStartOf="@+id/spAsset"/>
|
||||
android:layout_marginTop="6dp"
|
||||
android:layout_marginStart="4dp"
|
||||
app:layout_constraintTop_toTopOf="@+id/tilAssetSpinner"
|
||||
app:layout_constraintBottom_toBottomOf="@id/tilAssetSpinner"
|
||||
app:layout_constraintStart_toStartOf="@id/tilAssetSpinner"
|
||||
app:layout_constraintEnd_toEndOf="@id/tilAssetSpinner"/>
|
||||
|
||||
<com.google.android.material.textfield.TextInputLayout
|
||||
android:id="@+id/tilAsset"
|
||||
|
@ -68,7 +81,7 @@
|
|||
android:layout_marginStart="@dimen/activity_horizontal_margin"
|
||||
android:layout_marginEnd="@dimen/activity_horizontal_margin"
|
||||
android:layout_marginTop="@dimen/spacing_same_topic"
|
||||
android:visibility="gone"
|
||||
android:visibility="visible"
|
||||
android:hint="@string/text__asset"
|
||||
app:layout_constraintTop_toBottomOf="@id/tilAmount"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
|
@ -77,7 +90,9 @@
|
|||
<cy.agorise.bitsybitshareswallet.views.MyTextInputAutoCompleteTextView
|
||||
android:id="@+id/actvAsset"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:paddingTop="12dp"
|
||||
android:paddingBottom="12dp"
|
||||
android:paddingStart="12dp"
|
||||
android:paddingEnd="8dp"
|
||||
android:maxLines="1"
|
||||
|
|
Loading…
Reference in a new issue