585 lines
No EOL
28 KiB
XML
585 lines
No EOL
28 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"
|
|
android:background="@color/white"
|
|
android:orientation="vertical"
|
|
tools:context="com.tangem.presentation.fragment.VerifyCard"
|
|
tools:ignore="contentDescription"
|
|
tools:showIn="@layout/activity_verify_card">
|
|
|
|
<android.support.v4.widget.SwipeRefreshLayout
|
|
android:id="@+id/swipe_container"
|
|
android:layout_width="0dp"
|
|
android:layout_height="0dp"
|
|
android:layout_marginBottom="8dp"
|
|
android:padding="8dp"
|
|
app:layout_constraintBottom_toTopOf="@+id/rlToolButtons"
|
|
app:layout_constraintHorizontal_bias="0.0"
|
|
app:layout_constraintLeft_toLeftOf="parent"
|
|
app:layout_constraintRight_toRightOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
app:layout_constraintVertical_bias="0.0">
|
|
|
|
<ScrollView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content">
|
|
|
|
<RelativeLayout
|
|
android:id="@+id/rlCardInfo"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_alignParentStart="true"
|
|
android:layout_alignParentTop="true"
|
|
android:background="@color/white"
|
|
android:orientation="vertical"
|
|
android:padding="8dp">
|
|
|
|
<RelativeLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content">
|
|
|
|
<TextView
|
|
android:id="@+id/textView11"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_alignParentStart="true"
|
|
android:layout_alignParentTop="true"
|
|
android:layout_marginBottom="24dp"
|
|
android:layout_marginTop="8dp"
|
|
android:fontFamily="@font/raleway_r"
|
|
android:text="@string/card_id"
|
|
android:textAlignment="center"
|
|
android:textSize="@dimen/text_size_medium"/>
|
|
|
|
<TextView
|
|
android:id="@+id/tvCardID"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_alignParentStart="true"
|
|
android:layout_alignParentTop="true"
|
|
android:layout_marginBottom="4dp"
|
|
android:layout_marginTop="32dp"
|
|
android:fontFamily="@font/montserrat_light"
|
|
android:text="@string/no_data_string_1"
|
|
android:textAlignment="center"
|
|
android:textColor="@color/primary_dark"
|
|
android:textSize="@dimen/text_size_medium"
|
|
android:textStyle="normal|bold"/>
|
|
</RelativeLayout>
|
|
|
|
<View
|
|
android:id="@+id/view"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="1dp"
|
|
android:layout_marginBottom="8dp"
|
|
android:layout_marginTop="6dp"
|
|
android:layout_weight="1"
|
|
android:background="@android:color/darker_gray"/>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal">
|
|
|
|
<TextView
|
|
android:layout_width="@dimen/verify_card_left_col_width"
|
|
android:layout_height="wrap_content"
|
|
android:fontFamily="@font/raleway_r"
|
|
android:text="@string/issuer"
|
|
android:textSize="@dimen/text_size_medium"/>
|
|
|
|
<TextView
|
|
android:id="@+id/tvIssuer"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:fontFamily="@font/montserrat_light"
|
|
android:text="@string/smart_cash_ag"
|
|
android:textColor="@color/primary_dark"
|
|
android:textSize="@dimen/text_size_medium"
|
|
android:textStyle="normal|bold"/>
|
|
|
|
</LinearLayout>
|
|
|
|
<android.support.constraint.ConstraintLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content">
|
|
|
|
<TextView
|
|
android:id="@+id/tvBlockchainHeader"
|
|
android:layout_width="@dimen/verify_card_left_col_width"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="20dp"
|
|
android:fontFamily="@font/montserrat_light"
|
|
android:text="@string/blockchain"
|
|
android:textSize="@dimen/text_size_1_small"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent"/>
|
|
|
|
<TextView
|
|
android:id="@+id/tvBlockchain"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:fontFamily="@font/montserrat_light"
|
|
android:text="@string/blockchain"
|
|
android:textColor="@color/primary_dark"
|
|
android:textSize="@dimen/text_size_1_small"
|
|
android:textStyle="normal|bold"
|
|
app:layout_constraintLeft_toRightOf="@+id/tvBlockchainHeader"
|
|
app:layout_constraintTop_toTopOf="@+id/tvBlockchainHeader"/>
|
|
|
|
<ImageView
|
|
android:id="@+id/ivBlockchain"
|
|
android:layout_width="32dp"
|
|
android:layout_height="32dp"
|
|
android:layout_marginEnd="8dp"
|
|
android:src="@drawable/tangem_logo_small_new"
|
|
app:layout_constraintEnd_toEndOf="parent"/>
|
|
|
|
</android.support.constraint.ConstraintLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal">
|
|
|
|
<TextView
|
|
android:layout_width="@dimen/verify_card_left_col_width"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="20dp"
|
|
android:fontFamily="@font/raleway_r"
|
|
android:text="@string/signing_method"
|
|
android:textSize="@dimen/text_size_1_small"/>
|
|
|
|
<TextView
|
|
android:id="@+id/tvSigningMethod"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:fontFamily="@font/montserrat_light"
|
|
android:textColor="@color/primary_dark"
|
|
android:textSize="@dimen/text_size_1_small"
|
|
android:textStyle="normal|bold"
|
|
tools:text="Sign hash"/>
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal">
|
|
|
|
<TextView
|
|
android:layout_width="@dimen/verify_card_left_col_width"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="20dp"
|
|
android:fontFamily="@font/raleway_r"
|
|
android:text="@string/this_card_is"
|
|
android:textSize="@dimen/text_size_1_small"/>
|
|
|
|
<TextView
|
|
android:id="@+id/tvReusable"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:fontFamily="@font/montserrat_light"
|
|
android:textColor="@color/primary_dark"
|
|
android:textSize="@dimen/text_size_1_small"
|
|
android:textStyle="normal|bold"
|
|
tools:text="Reusable"/>
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal">
|
|
|
|
<TextView
|
|
android:layout_width="@dimen/verify_card_left_col_width"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="20dp"
|
|
android:fontFamily="@font/raleway_r"
|
|
android:text="@string/signed_transactions"
|
|
android:textSize="@dimen/text_size_1_small"/>
|
|
|
|
<TextView
|
|
android:id="@+id/tvSignedTx"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:fontFamily="@font/montserrat_light"
|
|
android:textColor="@color/primary_dark"
|
|
android:textSize="@dimen/text_size_1_small"
|
|
android:textStyle="normal|bold"
|
|
tools:text="100"/>
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal">
|
|
|
|
<TextView
|
|
android:layout_width="@dimen/verify_card_left_col_width"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="20dp"
|
|
android:fontFamily="@font/raleway_r"
|
|
android:text="@string/remaining_signatures"
|
|
android:textSize="@dimen/text_size_1_small"/>
|
|
|
|
<TextView
|
|
android:id="@+id/tvRemainingSignatures"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:fontFamily="@font/montserrat_light"
|
|
android:textColor="@color/primary_dark"
|
|
android:textSize="@dimen/text_size_1_small"
|
|
android:textStyle="normal|bold"
|
|
tools:text="0"/>
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal">
|
|
|
|
<TextView
|
|
android:layout_width="@dimen/verify_card_left_col_width"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="20dp"
|
|
android:fontFamily="@font/raleway_r"
|
|
android:text="@string/time_of_last_signing"
|
|
android:textSize="@dimen/text_size_1_small"/>
|
|
|
|
<TextView
|
|
android:id="@+id/tvLastSigned"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:fontFamily="@font/montserrat_light"
|
|
android:text=""
|
|
android:textColor="@color/primary_dark"
|
|
android:textSize="@dimen/text_size_1_small"
|
|
android:textStyle="normal|bold"/>
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal">
|
|
|
|
<TextView
|
|
android:layout_width="@dimen/verify_card_left_col_width"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="20dp"
|
|
android:fontFamily="@font/raleway_r"
|
|
android:text="@string/features"
|
|
android:textSize="@dimen/text_size_1_small"/>
|
|
|
|
<TextView
|
|
android:id="@+id/tvFeatures"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:fontFamily="@font/montserrat_light"
|
|
android:text="@string/allows_change_pin1_and_pin2"
|
|
android:textColor="@color/primary_dark"
|
|
android:textSize="@dimen/text_size_2_small"
|
|
android:textStyle="normal|bold"/>
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal">
|
|
|
|
<TextView
|
|
android:layout_width="@dimen/verify_card_left_col_width"
|
|
android:layout_height="wrap_content"
|
|
android:fontFamily="@font/raleway_r"
|
|
android:text=""
|
|
android:textSize="@dimen/text_size_small"/>
|
|
|
|
<TextView
|
|
android:id="@+id/tvIssuerData"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:fontFamily="@font/montserrat_light"
|
|
android:textSize="@dimen/text_size_1_small"
|
|
android:textStyle="normal|bold"/>
|
|
|
|
</LinearLayout>
|
|
|
|
<View
|
|
android:id="@+id/view2"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="1dp"
|
|
android:layout_marginBottom="6dp"
|
|
android:layout_marginTop="6dp"
|
|
android:layout_weight="1"
|
|
android:background="@android:color/darker_gray"/>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="2dp">
|
|
|
|
<TextView
|
|
android:layout_width="@dimen/verify_card_left_col_width"
|
|
android:layout_height="wrap_content"
|
|
android:fontFamily="@font/raleway_r"
|
|
android:text="@string/manufacturer"
|
|
android:textSize="@dimen/text_size_medium"/>
|
|
|
|
<TextView
|
|
android:id="@+id/tvManufacturerInfo"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:fontFamily="@font/montserrat_light"
|
|
android:text="@string/smart_cash_ag"
|
|
android:textColor="@color/primary_dark"
|
|
android:textSize="@dimen/text_size_medium"
|
|
android:textStyle="normal|bold"/>
|
|
|
|
<ImageView
|
|
android:id="@+id/imgBlockchain2"
|
|
android:layout_width="22dp"
|
|
android:layout_height="22dp"
|
|
android:layout_gravity="center_vertical"
|
|
android:layout_marginStart="12dp"
|
|
android:src="@drawable/tangem_logo_small_new"/>
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal">
|
|
|
|
<TextView
|
|
android:layout_width="@dimen/verify_card_left_col_width"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="20dp"
|
|
android:fontFamily="@font/raleway_r"
|
|
android:text="@string/card_identity"
|
|
android:textSize="@dimen/text_size_1_small"/>
|
|
|
|
<TextView
|
|
android:id="@+id/tvCardIdentity"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:fontFamily="@font/montserrat_light"
|
|
android:text="@string/attested"
|
|
android:textColor="@color/confirmed"
|
|
android:textSize="@dimen/text_size_1_small"
|
|
android:textStyle="normal|bold"/>
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal">
|
|
|
|
<TextView
|
|
android:layout_width="@dimen/verify_card_left_col_width"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="20dp"
|
|
android:fontFamily="@font/raleway_r"
|
|
android:text="@string/firmware"
|
|
android:textSize="@dimen/text_size_1_small"/>
|
|
|
|
<TextView
|
|
android:id="@+id/tvFirmware"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:fontFamily="@font/montserrat_light"
|
|
android:textColor="@color/primary_dark"
|
|
android:textSize="@dimen/text_size_1_small"
|
|
android:textStyle="normal|bold"
|
|
tools:text="1.05"/>
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content">
|
|
|
|
<TextView
|
|
android:layout_width="@dimen/verify_card_left_col_width"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="20dp"
|
|
android:fontFamily="@font/raleway_r"
|
|
android:text="@string/registration_date"
|
|
android:textSize="@dimen/text_size_1_small"/>
|
|
|
|
<TextView
|
|
android:id="@+id/tvCardRegistredDate"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:fontFamily="@font/montserrat_light"
|
|
android:textColor="@color/primary_dark"
|
|
android:textSize="@dimen/text_size_1_small"
|
|
android:textStyle="normal|bold"
|
|
tools:text="29/09/2017"/>
|
|
|
|
</LinearLayout>
|
|
|
|
<View
|
|
android:id="@+id/view3"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="1dp"
|
|
android:layout_marginBottom="6dp"
|
|
android:layout_marginTop="6dp"
|
|
android:layout_weight="1"
|
|
android:background="@android:color/darker_gray"/>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="2dp">
|
|
|
|
<TextView
|
|
android:layout_width="@dimen/verify_card_left_col_width"
|
|
android:layout_height="wrap_content"
|
|
android:fontFamily="@font/raleway_r"
|
|
android:text="@string/wallet"
|
|
android:textSize="@dimen/text_size_medium"/>
|
|
|
|
<TextView
|
|
android:id="@+id/tvWallet"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:fontFamily="@font/montserrat_light"
|
|
android:gravity="start|center_vertical"
|
|
android:textColor="@color/primary_dark"
|
|
android:textSize="@dimen/text_size_small"
|
|
android:textStyle="normal|bold"
|
|
tools:text="1DoQdnSYshhZ5Tqt5Sk6svZt29jqoYVwQY"/>
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal">
|
|
|
|
<TextView
|
|
android:layout_width="@dimen/verify_card_left_col_width"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="20dp"
|
|
android:fontFamily="@font/raleway_r"
|
|
android:text="@string/private_key"
|
|
android:textSize="@dimen/text_size_1_small"/>
|
|
|
|
<TextView
|
|
android:id="@+id/tvWalletIdentity"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:fontFamily="@font/montserrat_light"
|
|
android:textColor="@color/confirmed"
|
|
android:textSize="@dimen/text_size_1_small"
|
|
android:textStyle="normal|bold"
|
|
tools:text="Possession proved"/>
|
|
|
|
</LinearLayout>
|
|
|
|
<TextView
|
|
android:id="@+id/tvError"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:background="#7FFF4444"
|
|
android:fontFamily="@font/montserrat_light"
|
|
android:padding="4dp"
|
|
android:shadowColor="@color/cardview_shadow_start_color"
|
|
android:shadowDx="2"
|
|
android:shadowDy="2"
|
|
android:shadowRadius="2"
|
|
android:textAlignment="center"
|
|
android:textColor="@color/white"
|
|
android:textStyle="bold"
|
|
tools:text="Error!"/>
|
|
|
|
<TextView
|
|
android:id="@+id/tvMessage"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:background="#7F7FF27F"
|
|
android:fontFamily="@font/montserrat_light"
|
|
android:padding="4dp"
|
|
android:textAlignment="center"
|
|
android:textColor="@color/black"
|
|
android:textStyle="normal|bold"
|
|
tools:text="Message!"/>
|
|
|
|
</LinearLayout>
|
|
|
|
<ImageView
|
|
android:id="@+id/imgPIN"
|
|
android:layout_width="24dp"
|
|
android:layout_height="24dp"
|
|
android:layout_alignParentBottom="true"
|
|
android:layout_alignParentEnd="false"
|
|
android:layout_alignParentStart="false"
|
|
android:layout_toStartOf="@+id/imgPIN2orSecurityDelay"
|
|
android:src="@drawable/unlock_pin1"/>
|
|
|
|
<ImageView
|
|
android:id="@+id/imgPIN2orSecurityDelay"
|
|
android:layout_width="24dp"
|
|
android:layout_height="24dp"
|
|
android:layout_alignParentBottom="true"
|
|
android:layout_alignParentEnd="true"
|
|
android:layout_alignParentStart="false"
|
|
android:layout_marginStart="4dp"
|
|
android:src="@drawable/unlock_pin2"/>
|
|
|
|
<ImageView
|
|
android:id="@+id/imgDeveloperVersion"
|
|
android:layout_width="24dp"
|
|
android:layout_height="24dp"
|
|
android:layout_alignParentBottom="true"
|
|
android:layout_alignParentStart="true"
|
|
android:layout_marginStart="4dp"
|
|
android:src="@drawable/ic_developer_version"/>
|
|
|
|
</RelativeLayout>
|
|
|
|
</ScrollView>
|
|
|
|
</android.support.v4.widget.SwipeRefreshLayout>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/rlToolButtons"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintLeft_toLeftOf="parent"
|
|
app:layout_constraintRight_toRightOf="parent">
|
|
|
|
<android.support.design.widget.FloatingActionButton
|
|
android:id="@+id/fabMenu"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_margin="10dp"
|
|
app:fabSize="mini"
|
|
app:srcCompat="@drawable/ic_wrench_white_24dp"/>
|
|
|
|
<Button
|
|
android:id="@+id/btnOk"
|
|
style="@style/AppTheme.RoundedCornerMaterialButton"
|
|
android:layout_width="match_parent"
|
|
android:layout_margin="10dp"
|
|
android:text="@string/ok"/>
|
|
|
|
</LinearLayout>
|
|
|
|
</android.support.constraint.ConstraintLayout> |