262 lines
No EOL
11 KiB
XML
262 lines
No EOL
11 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<android.support.constraint.ConstraintLayout
|
|
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:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
tools:context="com.tangem.presentation.activity.PreparePaymentActivity">
|
|
|
|
<TextView
|
|
android:id="@+id/textView"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:fontFamily="@font/maax"
|
|
android:paddingBottom="8dp"
|
|
android:paddingTop="8dp"
|
|
android:text="@string/send_payment"
|
|
android:textAlignment="center"
|
|
android:textColor="@color/primary"
|
|
android:textSize="@dimen/text_size_large"
|
|
app:layout_constraintLeft_toLeftOf="parent"
|
|
app:layout_constraintRight_toRightOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent"/>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/llFrom"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:background="@color/btn_light"
|
|
android:orientation="vertical"
|
|
android:paddingBottom="24dp"
|
|
android:paddingEnd="8dp"
|
|
android:paddingStart="8dp"
|
|
android:paddingTop="24dp"
|
|
app:layout_constraintHorizontal_bias="0.0"
|
|
app:layout_constraintLeft_toLeftOf="parent"
|
|
app:layout_constraintRight_toRightOf="parent"
|
|
app:layout_constraintTop_toBottomOf="@+id/textView">
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="7dp"
|
|
android:layout_marginTop="8dp"
|
|
android:fontFamily="@font/maax"
|
|
android:text="@string/from_banknote"
|
|
android:textColor="@color/primary"
|
|
android:textSize="@dimen/text_size_medium"/>
|
|
|
|
<TextView
|
|
android:id="@+id/tvCardID"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="16dp"
|
|
android:layout_marginTop="4dp"
|
|
android:fontFamily="@font/maax"
|
|
android:textColor="@color/black"
|
|
android:textSize="@dimen/text_size_medium"
|
|
android:textStyle="bold"
|
|
tools:text="BB00 0000 1210 0233"/>
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="7dp"
|
|
android:layout_marginTop="12dp"
|
|
android:fontFamily="@font/maax"
|
|
android:text="@string/with_balance"
|
|
android:textColor="@color/primary"
|
|
android:textSize="@dimen/text_size_medium"/>
|
|
|
|
<LinearLayout
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal">
|
|
|
|
<TextView
|
|
android:id="@+id/tvBalance"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginBottom="2dp"
|
|
android:layout_marginStart="16dp"
|
|
android:layout_marginTop="4dp"
|
|
android:fontFamily="@font/maax"
|
|
android:textColor="@color/black"
|
|
android:textSize="@dimen/text_size_medium"
|
|
android:textStyle="bold"
|
|
tools:text="4.51735 Btc"/>
|
|
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/llTo"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:backgroundTint="@color/card_state_loaded_with_zero"
|
|
android:orientation="vertical"
|
|
android:paddingTop="32dp"
|
|
app:layout_constraintLeft_toLeftOf="parent"
|
|
app:layout_constraintLeft_toRightOf="parent"
|
|
app:layout_constraintTop_toBottomOf="@+id/llFrom">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:orientation="horizontal">
|
|
|
|
<TextView
|
|
android:id="@+id/textView2"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="8dp"
|
|
android:layout_marginTop="4dp"
|
|
android:fontFamily="@font/maax"
|
|
android:text="@string/send_to_wallet"
|
|
android:textColor="@color/primary"
|
|
android:textSize="@dimen/text_size_medium"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintLeft_toLeftOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent"/>
|
|
|
|
<ImageView
|
|
android:id="@+id/ivCamera"
|
|
android:layout_width="32dp"
|
|
android:layout_height="32dp"
|
|
android:layout_marginStart="12dp"
|
|
android:src="@drawable/qr_scan"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintRight_toRightOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent"/>
|
|
|
|
</LinearLayout>
|
|
|
|
<EditText
|
|
android:id="@+id/etWallet"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginEnd="8dp"
|
|
android:layout_marginStart="8dp"
|
|
android:fontFamily="@font/maax"
|
|
android:hint="@string/enter_wallet_address"
|
|
android:inputType="text|textMultiLine|textNoSuggestions"
|
|
android:imeOptions="actionNext"
|
|
android:padding="12dp"
|
|
android:singleLine="false"
|
|
android:textColor="@color/colorPrimaryDark"
|
|
android:textColorLink="@android:color/holo_blue_dark"
|
|
android:textSize="@dimen/text_size_medium"
|
|
app:layout_constraintLeft_toLeftOf="parent"
|
|
app:layout_constraintRight_toLeftOf="@+id/ivCamera"
|
|
tools:layout_editor_absoluteY="2dp"/>
|
|
|
|
<android.support.constraint.ConstraintLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent">
|
|
|
|
<TextView
|
|
android:id="@+id/textView3"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginBottom="8dp"
|
|
android:layout_marginStart="7dp"
|
|
android:layout_marginTop="24dp"
|
|
android:fontFamily="@font/maax"
|
|
android:text="@string/amount"
|
|
android:textColor="@color/primary"
|
|
android:textSize="@dimen/text_size_medium"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintLeft_toLeftOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent"/>
|
|
|
|
</android.support.constraint.ConstraintLayout>
|
|
|
|
<android.support.constraint.ConstraintLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_marginLeft="8dp">
|
|
|
|
<EditText
|
|
android:id="@+id/etAmount"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:digits="0123456789.,"
|
|
android:fontFamily="@font/maax"
|
|
android:hint="@string/enter_amount"
|
|
android:inputType="numberDecimal"
|
|
android:imeOptions="actionDone"
|
|
android:padding="12dp"
|
|
android:textColor="@color/colorPrimaryDark"
|
|
android:textSize="@dimen/text_size_large"
|
|
android:textStyle="bold"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintLeft_toLeftOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
app:layout_constraintWidth_min="150dp" />
|
|
|
|
<TextView
|
|
android:id="@+id/tvCurrency"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginBottom="8dp"
|
|
android:layout_marginStart="8dp"
|
|
android:fontFamily="@font/maax"
|
|
android:text="@string/m_btc"
|
|
android:textColor="@color/primary"
|
|
android:textSize="@dimen/text_size_large"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintLeft_toRightOf="@+id/etAmount" />
|
|
|
|
</android.support.constraint.ConstraintLayout>
|
|
|
|
<info.hoang8f.android.segmented.SegmentedGroup
|
|
android:id="@+id/rgIncFee"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_margin="10dp"
|
|
android:checkedButton="@+id/rbFeeIn"
|
|
android:gravity="center"
|
|
android:orientation="horizontal"
|
|
app:sc_border_width="2dp"
|
|
app:sc_corner_radius="10dp"
|
|
app:sc_tint_color="@color/colorPrimary"
|
|
tools:layout_editor_absoluteX="10dp">
|
|
|
|
<RadioButton
|
|
android:id="@+id/rbFeeIn"
|
|
style="@style/RadioButton"
|
|
android:layout_width="150dp"
|
|
android:layout_height="wrap_content"
|
|
android:fontFamily="@font/saira_condensed_bold"
|
|
android:text="@string/including_fee_"
|
|
android:textSize="@dimen/text_size_medium" />
|
|
|
|
<RadioButton
|
|
android:id="@+id/rbFeeOut"
|
|
style="@style/RadioButton"
|
|
android:layout_width="150dp"
|
|
android:layout_height="wrap_content"
|
|
android:fontFamily="@font/saira_condensed_bold"
|
|
android:text="@string/not_including_fee_"
|
|
android:textSize="@dimen/text_size_medium" />
|
|
|
|
</info.hoang8f.android.segmented.SegmentedGroup>
|
|
|
|
</LinearLayout>
|
|
|
|
<android.support.v7.widget.AppCompatButton
|
|
android:id="@+id/btnVerify"
|
|
style="@style/AppTheme.RoundedCornerMaterialButton"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="50dp"
|
|
android:layout_marginBottom="16dp"
|
|
android:fontFamily="@font/saira_condensed_bold"
|
|
android:text="@string/verify"
|
|
android:textSize="@dimen/text_size_large"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintLeft_toLeftOf="parent"
|
|
app:layout_constraintRight_toRightOf="parent" />
|
|
|
|
</android.support.constraint.ConstraintLayout> |