265 lines
11 KiB
XML
265 lines
11 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
android:id="@+id/csRecipientAddress"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical"
|
|
android:paddingStart="16dp"
|
|
android:paddingEnd="16dp">
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
android:id="@+id/addressContainer"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent">
|
|
|
|
<com.google.android.material.textfield.TextInputLayout
|
|
android:id="@+id/tilAddress"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
app:errorIconDrawable="@null"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
style="@style/SecondaryTextInputLayout"
|
|
app:layout_constraintTop_toTopOf="parent">
|
|
|
|
<com.tangem.tap.features.send.ui.EditTextCustomPaste
|
|
android:id="@+id/etAddress"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:ellipsize="middle"
|
|
android:inputType="textNoSuggestions"
|
|
android:paddingStart="0dp"
|
|
android:paddingEnd="98dp"
|
|
android:singleLine="true"
|
|
android:textSize="16sp"
|
|
android:background="@color/background_secondary"
|
|
android:textColor="@color/text_primary_1"
|
|
tools:text="139mrsJgyWnJ **** y9BV" />
|
|
|
|
</com.google.android.material.textfield.TextInputLayout>
|
|
|
|
<FrameLayout
|
|
android:id="@+id/flPaste"
|
|
android:layout_width="@dimen/btn_rounded_size"
|
|
android:layout_height="@dimen/btn_rounded_size"
|
|
android:layout_marginEnd="8dp"
|
|
android:background="@drawable/shape_ellipse"
|
|
app:layout_constraintBottom_toBottomOf="@+id/flQrCode"
|
|
app:layout_constraintEnd_toStartOf="@+id/flQrCode"
|
|
app:layout_constraintTop_toTopOf="@+id/flQrCode">
|
|
|
|
<ImageView
|
|
android:id="@+id/imvPaste"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center"
|
|
android:background="?selectableItemBackgroundBorderless"
|
|
android:padding="6dp"
|
|
app:srcCompat="@drawable/paste_selector" />
|
|
|
|
</FrameLayout>
|
|
|
|
<FrameLayout
|
|
android:id="@+id/flQrCode"
|
|
android:layout_width="@dimen/btn_rounded_size"
|
|
android:layout_height="@dimen/btn_rounded_size"
|
|
android:background="@drawable/shape_ellipse"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
android:layout_marginTop="4dp"
|
|
app:layout_constraintTop_toTopOf="parent">
|
|
|
|
<ImageView
|
|
android:id="@+id/imvQrCode"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center"
|
|
android:background="?selectableItemBackgroundBorderless"
|
|
android:padding="5dp"
|
|
app:srcCompat="@drawable/ic_qr_code_scan" />
|
|
|
|
</FrameLayout>
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/extrasFieldsContainer"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="8dp"
|
|
android:orientation="vertical"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toBottomOf="@+id/addressContainer">
|
|
|
|
<LinearLayout
|
|
android:id="@+id/xlmMemoContainer"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical"
|
|
android:visibility="gone"
|
|
tools:visibility="visible">
|
|
|
|
<com.google.android.material.textfield.TextInputLayout
|
|
android:id="@+id/tilXlmMemo"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:hint="@string/send_extras_hint_memo"
|
|
style="@style/SecondaryTextInputLayout"
|
|
app:errorIconDrawable="@null">
|
|
|
|
<com.google.android.material.textfield.TextInputEditText
|
|
android:id="@+id/etXlmMemo"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:background="@color/background_secondary"
|
|
android:textColor="@color/text_primary_1"
|
|
android:ellipsize="middle"
|
|
android:inputType="text|textNoSuggestions"
|
|
android:paddingStart="0dp"
|
|
android:paddingEnd="0dp"
|
|
android:singleLine="true"
|
|
android:textSize="16sp"
|
|
tools:text="Some memo" />
|
|
|
|
</com.google.android.material.textfield.TextInputLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
<FrameLayout
|
|
android:id="@+id/binanceMemoContainer"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:visibility="gone"
|
|
tools:visibility="visible">
|
|
|
|
<com.google.android.material.textfield.TextInputLayout
|
|
android:id="@+id/tilBinanceMemo"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:hint="@string/send_extras_hint_memo"
|
|
style="@style/SecondaryTextInputLayout"
|
|
app:errorIconDrawable="@null">
|
|
|
|
<com.google.android.material.textfield.TextInputEditText
|
|
android:id="@+id/etBinanceMemo"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:background="@color/background_secondary"
|
|
android:textColor="@color/text_primary_1"
|
|
android:ellipsize="end"
|
|
android:inputType="number"
|
|
android:paddingStart="0dp"
|
|
android:paddingEnd="0dp"
|
|
android:singleLine="true"
|
|
android:textSize="16sp"
|
|
tools:text="123" />
|
|
|
|
</com.google.android.material.textfield.TextInputLayout>
|
|
|
|
</FrameLayout>
|
|
|
|
<FrameLayout
|
|
android:id="@+id/xrpDestinationTagContainer"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:visibility="gone"
|
|
tools:visibility="visible">
|
|
|
|
<com.google.android.material.textfield.TextInputLayout
|
|
android:id="@+id/tilDestinationTag"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:hint="@string/send_extras_hint_destination_tag"
|
|
style="@style/SecondaryTextInputLayout"
|
|
app:errorIconDrawable="@null">
|
|
|
|
<com.google.android.material.textfield.TextInputEditText
|
|
android:id="@+id/etDestinationTag"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:background="@color/background_secondary"
|
|
android:textColor="@color/text_primary_1"
|
|
android:ellipsize="end"
|
|
android:inputType="number"
|
|
android:paddingStart="0dp"
|
|
android:paddingEnd="0dp"
|
|
android:singleLine="true"
|
|
android:textSize="16sp"
|
|
tools:text="Some destination tag" />
|
|
|
|
</com.google.android.material.textfield.TextInputLayout>
|
|
|
|
</FrameLayout>
|
|
|
|
<FrameLayout
|
|
android:id="@+id/tonMemoContainer"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:visibility="gone"
|
|
tools:visibility="visible">
|
|
|
|
<com.google.android.material.textfield.TextInputLayout
|
|
android:id="@+id/tilTonMemo"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:hint="@string/send_extras_hint_memo"
|
|
style="@style/SecondaryTextInputLayout"
|
|
app:errorIconDrawable="@null">
|
|
|
|
<com.google.android.material.textfield.TextInputEditText
|
|
android:id="@+id/etTonMemo"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:background="@color/background_secondary"
|
|
android:textColor="@color/text_primary_1"
|
|
android:ellipsize="end"
|
|
android:paddingStart="0dp"
|
|
android:paddingEnd="0dp"
|
|
android:singleLine="true"
|
|
android:textSize="16sp"
|
|
tools:text="Ton memo" />
|
|
|
|
</com.google.android.material.textfield.TextInputLayout>
|
|
|
|
</FrameLayout>
|
|
|
|
<FrameLayout
|
|
android:id="@+id/cosmosMemoContainer"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:visibility="gone"
|
|
tools:visibility="visible">
|
|
|
|
<com.google.android.material.textfield.TextInputLayout
|
|
android:id="@+id/tilCosmosMemo"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:hint="@string/send_extras_hint_memo"
|
|
style="@style/SecondaryTextInputLayout"
|
|
app:errorIconDrawable="@null">
|
|
|
|
<com.google.android.material.textfield.TextInputEditText
|
|
android:id="@+id/etCosmosMemo"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:background="@color/background_secondary"
|
|
android:textColor="@color/text_primary_1"
|
|
android:ellipsize="end"
|
|
android:paddingStart="0dp"
|
|
android:paddingEnd="0dp"
|
|
android:singleLine="true"
|
|
android:textSize="16sp"
|
|
tools:text="Ton memo" />
|
|
|
|
</com.google.android.material.textfield.TextInputLayout>
|
|
|
|
</FrameLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|