423 lines
No EOL
17 KiB
XML
423 lines
No EOL
17 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<androidx.constraintlayout.widget.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.ui.activity.PrepareCryptonitWithdrawalActivity">
|
|
|
|
<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/cryptonit_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="8dp"
|
|
android:paddingEnd="2dp"
|
|
android:paddingStart="2dp"
|
|
android:paddingTop="8dp"
|
|
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/cryptonit_from_account"
|
|
android:textColor="@color/primary"
|
|
android:textSize="@dimen/text_size_medium" />
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal">
|
|
|
|
<TextView
|
|
android:layout_width="110dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center"
|
|
android:layout_marginStart="15dp"
|
|
android:fontFamily="@font/maax"
|
|
android:text="@string/cryptonit_username"
|
|
android:textColor="@color/primary"
|
|
android:textSize="@dimen/text_size_medium" />
|
|
|
|
<EditText
|
|
android:id="@+id/etUsername"
|
|
android:layout_width="220dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center"
|
|
android:fontFamily="@font/maax"
|
|
android:textColor="@color/black"
|
|
android:textSize="@dimen/text_size_1_small"
|
|
android:textStyle="bold"
|
|
android:inputType="text"
|
|
android:imeOptions="actionNext"
|
|
tools:text="11111" />
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal">
|
|
|
|
<TextView
|
|
android:layout_width="110dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center"
|
|
android:layout_marginStart="15dp"
|
|
android:fontFamily="@font/maax"
|
|
android:text="@string/cryptonit_password"
|
|
android:textColor="@color/primary"
|
|
android:textSize="@dimen/text_size_medium" />
|
|
|
|
<EditText
|
|
android:id="@+id/etPassword"
|
|
android:layout_width="220dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center"
|
|
android:fontFamily="@font/maax"
|
|
android:inputType="textWebPassword"
|
|
android:imeOptions="actionNext"
|
|
android:textColor="@color/black"
|
|
android:textSize="@dimen/text_size_1_small"
|
|
android:textStyle="bold"
|
|
tools:text="11111" />
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:orientation="horizontal">
|
|
|
|
<TextView
|
|
android:layout_width="110dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center"
|
|
android:layout_marginStart="15dp"
|
|
android:fontFamily="@font/maax"
|
|
android:text="@string/withdrawal_fee"
|
|
android:textColor="@color/primary"
|
|
android:textSize="@dimen/text_size_medium" />
|
|
|
|
|
|
<EditText
|
|
android:id="@+id/etFee"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:digits="0123456789.,"
|
|
android:fontFamily="@font/maax"
|
|
android:hint="@string/enter_amount"
|
|
android:inputType="numberDecimal"
|
|
android:imeOptions="actionNext"
|
|
android:padding="12dp"
|
|
android:textColor="@color/black"
|
|
android:textSize="@dimen/text_size_1_small"
|
|
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/tvFeeCurrency"
|
|
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_medium"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintLeft_toRightOf="@+id/etFee" />
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
<LinearLayout
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="8dp"
|
|
android:orientation="horizontal">
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center"
|
|
android:layout_marginStart="7dp"
|
|
android:fontFamily="@font/maax"
|
|
android:text="@string/with_balance"
|
|
android:textColor="@color/primary"
|
|
android:textSize="@dimen/text_size_medium" />
|
|
|
|
<TextView
|
|
android:id="@+id/tvBalance"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center"
|
|
android:layout_marginStart="16dp"
|
|
android:fontFamily="@font/maax"
|
|
android:textColor="@color/black"
|
|
android:textSize="@dimen/text_size_medium"
|
|
android:textStyle="bold"
|
|
tools:text="4.51735" />
|
|
|
|
<TextView
|
|
android:id="@+id/tvBalanceCurrency"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center"
|
|
android:layout_marginStart="16dp"
|
|
android:fontFamily="@font/maax"
|
|
android:textColor="@color/black"
|
|
android:textSize="@dimen/text_size_medium"
|
|
android:textStyle="bold"
|
|
tools:text="BTC" />
|
|
|
|
<ImageView
|
|
android:id="@+id/ivRefreshBalance"
|
|
android:layout_width="32dp"
|
|
android:layout_height="32dp"
|
|
android:layout_marginStart="12dp"
|
|
android:src="@drawable/ic_refresh"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintRight_toRightOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
</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="24dp"
|
|
app:layout_constraintLeft_toLeftOf="parent"
|
|
app:layout_constraintLeft_toRightOf="parent"
|
|
app:layout_constraintTop_toBottomOf="@+id/llFrom">
|
|
|
|
<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" />
|
|
|
|
<TextView
|
|
android:id="@+id/tvWallet"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginEnd="8dp"
|
|
android:layout_marginStart="8dp"
|
|
android:fontFamily="@font/maax"
|
|
android:padding="8dp"
|
|
android:singleLine="false"
|
|
android:textColor="@color/colorPrimaryDark"
|
|
android:textColorLink="@android:color/holo_blue_dark"
|
|
android:textSize="@dimen/text_size_1_small"
|
|
app:layout_constraintLeft_toLeftOf="parent"
|
|
app:layout_constraintRight_toLeftOf="@+id/ivCamera"
|
|
tools:layout_editor_absoluteY="2dp" />
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal">
|
|
|
|
<TextView
|
|
android:id="@+id/textView5"
|
|
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/on_banknote"
|
|
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" />
|
|
|
|
<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:textAlignment="center"
|
|
android:textColor="@color/black"
|
|
android:textSize="@dimen/text_size_medium"
|
|
android:textStyle="bold"
|
|
tools:text="BB00 0000 1210 0233" />
|
|
</LinearLayout>
|
|
|
|
<androidx.constraintlayout.widget.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="2dp"
|
|
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" />
|
|
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
<androidx.constraintlayout.widget.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:padding="12dp"
|
|
android:textColor="@color/colorPrimaryDark"
|
|
android:textSize="@dimen/text_size_large"
|
|
android:textStyle="bold"
|
|
android:imeOptions="actionDone"
|
|
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" />
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
|
|
<TextView
|
|
android:id="@+id/tvError"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginBottom="8dp"
|
|
android:layout_marginEnd="8dp"
|
|
android:layout_marginStart="8dp"
|
|
android:background="@color/bg_err"
|
|
android:fontFamily="@font/maax"
|
|
android:padding="2dp"
|
|
android:text="@string/error"
|
|
android:textAlignment="center"
|
|
android:textColor="@color/white"
|
|
android:textSize="@dimen/text_size_medium" />
|
|
|
|
</LinearLayout>
|
|
|
|
<androidx.appcompat.widget.AppCompatButton
|
|
android:id="@+id/btnLoad"
|
|
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/load"
|
|
android:textSize="@dimen/text_size_large"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintLeft_toLeftOf="parent"
|
|
app:layout_constraintRight_toRightOf="parent" />
|
|
|
|
<RelativeLayout
|
|
android:id="@+id/rlProgressBar"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_centerInParent="true"
|
|
android:layout_marginBottom="8dp"
|
|
android:layout_marginEnd="8dp"
|
|
android:layout_marginStart="8dp"
|
|
android:layout_marginTop="8dp"
|
|
android:elevation="10dp"
|
|
android:visibility="gone"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
tools:visibility="visible"
|
|
|
|
>
|
|
|
|
<RelativeLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:alpha="0.5"
|
|
android:background="@color/bg_window" />
|
|
|
|
<TextView
|
|
android:id="@+id/tvProgressDescription"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_centerInParent="true"
|
|
android:alpha="0.8"
|
|
android:text="@string/cryptonit_request_balance"
|
|
android:textColor="@color/colorPrimary"
|
|
android:textStyle="bold" />
|
|
|
|
<ProgressBar
|
|
android:layout_width="@dimen/size_progress_bar_big"
|
|
android:layout_height="@dimen/size_progress_bar_big"
|
|
android:layout_centerInParent="true"
|
|
|
|
android:alpha="0.8"
|
|
android:elevation="1dp" />
|
|
|
|
</RelativeLayout>
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout> |