tangem-app-android-audited/app/src/main/res/layout/fr_verify_card.xml
2018-05-29 20:21:36 +03:00

576 lines
26 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"
android:padding="0dp"
tools:context="com.tangem.wallet.com.tangem.presentation.fragment.VerifyCardActivityFragment"
tools:showIn="@layout/activity_verify_card">
<RelativeLayout
android:id="@+id/rlToolButtons"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:background="@color/btn_light"
android:backgroundTint="@color/colorPrimary"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="40dp"
android:orientation="horizontal">
<TextView
android:id="@+id/tvOk"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:fontFamily="@font/raleway_r"
android:padding="8dp"
android:text="OK"
android:textAlignment="center"
android:textColor="@color/white"
android:textSize="18dp" />
</LinearLayout>
</RelativeLayout>
<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">
<RelativeLayout
android:id="@+id/rlCardInfo"
android:layout_width="match_parent"
android:layout_height="match_parent">
<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="Card ID"
android:textAlignment="center"
android:textSize="@dimen/verify_card_font_normal" />
<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="---- ---- ---- ----"
android:textAlignment="center"
android:textColor="@color/primary_dark"
android:textSize="@dimen/verify_card_font_normal"
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="Issuer"
android:textSize="@dimen/verify_card_font_normal" />
<TextView
android:id="@+id/tvIssuer"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:fontFamily="@font/montserrat_light"
android:text="Smart Cash AG"
android:textColor="@color/primary_dark"
android:textSize="@dimen/verify_card_font_normal"
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="Blockchain"
android:textSize="14dp"
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="Blockchain"
android:textColor="@color/primary_dark"
android:textSize="14dp"
android:textStyle="normal|bold"
app:layout_constraintLeft_toRightOf="@+id/tvBlockchainHeader"
app:layout_constraintTop_toTopOf="@+id/tvBlockchainHeader" />
<ImageView
android:id="@+id/imgBlockchain"
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_marginLeft="20dp"
android:fontFamily="@font/raleway_r"
android:text="Signing method"
android:textSize="@dimen/verify_card_font_small" />
<TextView
android:id="@+id/tvSigningMethod"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:fontFamily="@font/montserrat_light"
android:text="Sign hash"
android:textColor="@color/primary_dark"
android:textSize="@dimen/verify_card_font_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_marginLeft="20dp"
android:fontFamily="@font/raleway_r"
android:text="This card is"
android:textSize="@dimen/verify_card_font_small" />
<TextView
android:id="@+id/tvReusable"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:fontFamily="@font/montserrat_light"
android:text="Reusable"
android:textColor="@color/primary_dark"
android:textSize="@dimen/verify_card_font_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_marginLeft="20dp"
android:fontFamily="@font/raleway_r"
android:text="Signed transactions"
android:textSize="@dimen/verify_card_font_small" />
<TextView
android:id="@+id/tvSignedTx"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:fontFamily="@font/montserrat_light"
android:text="100"
android:textColor="@color/primary_dark"
android:textSize="@dimen/verify_card_font_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_marginLeft="20dp"
android:fontFamily="@font/raleway_r"
android:text="Remaining signatures"
android:textSize="@dimen/verify_card_font_small" />
<TextView
android:id="@+id/tvRemainingSignatures"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:fontFamily="@font/montserrat_light"
android:text="0"
android:textColor="@color/primary_dark"
android:textSize="@dimen/verify_card_font_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_marginLeft="20dp"
android:fontFamily="@font/raleway_r"
android:text="Time of last signing"
android:textSize="@dimen/verify_card_font_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/verify_card_font_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_marginLeft="20dp"
android:fontFamily="@font/raleway_r"
android:text="Features"
android:textSize="@dimen/verify_card_font_small" />
<TextView
android:id="@+id/tvFeatures"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:fontFamily="@font/montserrat_light"
android:text="Allows change PIN1 and PIN2\nNeed CVC\nDynamic NDEF\nRecoverable\nBlockable\nAtomic command mode"
android:textColor="@color/primary_dark"
android:textSize="10dp"
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="12dp" />
<TextView
android:id="@+id/tvIssuerData"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:fontFamily="@font/montserrat_light"
android:text=" "
android:textSize="@dimen/verify_card_font_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="Manufacturer"
android:textSize="@dimen/verify_card_font_normal" />
<TextView
android:id="@+id/tvManufacturerInfo"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:fontFamily="@font/montserrat_light"
android:text="Smart Cash AG"
android:textColor="@color/primary_dark"
android:textSize="@dimen/verify_card_font_normal"
android:textStyle="normal|bold" />
<ImageView
android:id="@+id/imgBlockchain2"
android:layout_width="22dp"
android:layout_height="22dp"
android:layout_gravity="center_vertical"
android:layout_marginLeft="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_marginLeft="20dp"
android:fontFamily="@font/raleway_r"
android:text="Card identity"
android:textSize="14dp" />
<TextView
android:id="@+id/tvCardIdentity"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:fontFamily="@font/montserrat_light"
android:text="Attested"
android:textColor="@color/confirmed"
android:textSize="14dp"
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_marginLeft="20dp"
android:fontFamily="@font/raleway_r"
android:text="Firmware"
android:textSize="@dimen/verify_card_font_small" />
<TextView
android:id="@+id/tvFirmware"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:fontFamily="@font/montserrat_light"
android:text="1.05"
android:textColor="@color/primary_dark"
android:textSize="@dimen/verify_card_font_small"
android:textStyle="normal|bold" />
</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_marginLeft="20dp"
android:fontFamily="@font/raleway_r"
android:text="Registration date"
android:textSize="@dimen/verify_card_font_small" />
<TextView
android:id="@+id/tvCardRegistredDate"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:fontFamily="@font/montserrat_light"
android:text="29/09/2017"
android:textColor="@color/primary_dark"
android:textSize="@dimen/verify_card_font_small"
android:textStyle="normal|bold" />
</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="Wallet"
android:textSize="@dimen/verify_card_font_normal" />
<TextView
android:id="@+id/tvWallet"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:fontFamily="@font/montserrat_light"
android:gravity="left|center_vertical"
android:text="address"
android:textColor="@color/primary_dark"
android:textSize="12dp"
android:textStyle="normal|bold" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<TextView
android:id="@+id/tvWalletIdentityLabel"
android:layout_width="@dimen/verify_card_left_col_width"
android:layout_height="wrap_content"
android:layout_marginLeft="20dp"
android:fontFamily="@font/raleway_r"
android:text="Private key"
android:textSize="14dp" />
<TextView
android:id="@+id/tvWalletIdentity"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:fontFamily="@font/montserrat_light"
android:text="Possession proved"
android:textColor="@color/confirmed"
android:textSize="14dp"
android:textStyle="normal|bold" />
</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:text="Error!"
android:textAlignment="center"
android:textColor="@color/white"
android:textStyle="bold" />
<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:text="Message!"
android:textAlignment="center"
android:textColor="@color/black"
android:textStyle="normal|bold" />
</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_toLeftOf="@+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_marginLeft="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_marginLeft="4dp"
android:src="@drawable/ic_developer_version" />
</RelativeLayout>
</android.support.v4.widget.SwipeRefreshLayout>
</android.support.constraint.ConstraintLayout>