diff --git a/.idea/caches/build_file_checksums.ser b/.idea/caches/build_file_checksums.ser index b5ad54e229..41bd63e5f0 100644 Binary files a/.idea/caches/build_file_checksums.ser and b/.idea/caches/build_file_checksums.ser differ diff --git a/app/src/main/java/com/tangem/presentation/activity/CreateNewWalletActivity.java b/app/src/main/java/com/tangem/presentation/activity/CreateNewWalletActivity.java index 3ce28331d9..30ceaeb9b0 100644 --- a/app/src/main/java/com/tangem/presentation/activity/CreateNewWalletActivity.java +++ b/app/src/main/java/com/tangem/presentation/activity/CreateNewWalletActivity.java @@ -44,12 +44,12 @@ public class CreateNewWalletActivity extends AppCompatActivity implements NfcAda mCard = new TangemCard(getIntent().getStringExtra("UID")); mCard.LoadFromBundle(getIntent().getExtras().getBundle("Card")); - tvCardID = (TextView) findViewById(R.id.tvCardID); + tvCardID = findViewById(R.id.tvCardID); tvCardID.setText(mCard.getCIDDescription()); mNfcManager = new NfcManager(this, this); - progressBar = (ProgressBar) findViewById(R.id.progressBar); + progressBar = findViewById(R.id.progressBar); progressBar.setProgressTintList(ColorStateList.valueOf(Color.DKGRAY)); progressBar.setVisibility(View.INVISIBLE); } diff --git a/app/src/main/java/com/tangem/presentation/activity/PreparePaymentActivity.java b/app/src/main/java/com/tangem/presentation/activity/PreparePaymentActivity.java index 3ebc987cf5..2f4f09793b 100644 --- a/app/src/main/java/com/tangem/presentation/activity/PreparePaymentActivity.java +++ b/app/src/main/java/com/tangem/presentation/activity/PreparePaymentActivity.java @@ -31,14 +31,14 @@ public class PreparePaymentActivity extends AppCompatActivity implements NfcAdap private static final int REQUEST_CODE_SCAN_QR = 1; private static final int REQUEST_CODE_SEND_PAYMENT = 2; - Button btnVerify; - EditText etWallet; - EditText etAmount; - TextView tvCurrency; - TextView tvCardId, tvBalance, tvBalanceEquivalent, tvAmountEquivalent; - ImageView ivCamera; + private Button btnVerify; + private EditText etWallet; + private EditText etAmount; + private TextView tvCurrency; + private TextView tvCardId, tvBalance, tvBalanceEquivalent, tvAmountEquivalent; + private ImageView ivCamera; boolean use_mCurrency; - TangemCard mCard; + private TangemCard mCard; private NfcManager mNfcManager; @Override @@ -53,15 +53,15 @@ public class PreparePaymentActivity extends AppCompatActivity implements NfcAdap mCard = new TangemCard(getIntent().getStringExtra("UID")); mCard.LoadFromBundle(getIntent().getExtras().getBundle("Card")); - btnVerify = (Button) findViewById(R.id.btnVerify); - etWallet = (EditText) findViewById(R.id.etWallet); - etAmount = (EditText) findViewById(R.id.etAmount); - ivCamera = (ImageView) findViewById(R.id.ivCamera); - tvCurrency = (TextView) findViewById(R.id.tvCurrency); - tvCardId = (TextView) findViewById(R.id.tvCardID); - tvBalance = (TextView) findViewById(R.id.tvBalance); - tvBalanceEquivalent = (TextView) findViewById(R.id.tvBalanceEquivalent); - tvAmountEquivalent = (TextView) findViewById(R.id.tvAmountEquivalent); + btnVerify = findViewById(R.id.btnVerify); + etWallet = findViewById(R.id.etWallet); + etAmount = findViewById(R.id.etAmount); + ivCamera = findViewById(R.id.ivCamera); + tvCurrency = findViewById(R.id.tvCurrency); + tvCardId = findViewById(R.id.tvCardID); + tvBalance = findViewById(R.id.tvBalance); + tvBalanceEquivalent = findViewById(R.id.tvBalanceEquivalent); + tvAmountEquivalent = findViewById(R.id.tvAmountEquivalent); tvCardId.setText(mCard.getCIDDescription()); CoinEngine engine = CoinEngineFactory.Create(mCard.getBlockchain()); diff --git a/app/src/main/java/com/tangem/presentation/activity/PurgeActivity.java b/app/src/main/java/com/tangem/presentation/activity/PurgeActivity.java index 2caca8b0b3..c9ab49c818 100644 --- a/app/src/main/java/com/tangem/presentation/activity/PurgeActivity.java +++ b/app/src/main/java/com/tangem/presentation/activity/PurgeActivity.java @@ -45,12 +45,12 @@ public class PurgeActivity extends AppCompatActivity implements NfcAdapter.Reade mCard = new TangemCard(getIntent().getStringExtra("UID")); mCard.LoadFromBundle(getIntent().getExtras().getBundle("Card")); - tvCardID = (TextView) findViewById(R.id.tvCardID); + tvCardID = findViewById(R.id.tvCardID); tvCardID.setText(mCard.getCIDDescription()); mNfcManager = new NfcManager(this, this); - progressBar = (ProgressBar) findViewById(R.id.progressBar); + progressBar = findViewById(R.id.progressBar); progressBar.setProgressTintList(ColorStateList.valueOf(Color.DKGRAY)); progressBar.setVisibility(View.INVISIBLE); } diff --git a/app/src/main/res/layout/activity_card_info.xml b/app/src/main/res/layout/activity_card_info.xml index 434e6a4a2c..13047b643d 100644 --- a/app/src/main/res/layout/activity_card_info.xml +++ b/app/src/main/res/layout/activity_card_info.xml @@ -16,16 +16,6 @@ android:paddingTop="@dimen/appbar_padding_top" android:theme="@style/AppTheme.AppBarOverlay"> - - - - - - - - - - - - - - - - - - diff --git a/app/src/main/res/layout/activity_confirm_payment.xml b/app/src/main/res/layout/activity_confirm_payment.xml index 5270149e44..07d7eaabd9 100644 --- a/app/src/main/res/layout/activity_confirm_payment.xml +++ b/app/src/main/res/layout/activity_confirm_payment.xml @@ -22,7 +22,6 @@ app:layout_constraintRight_toRightOf="parent" app:layout_constraintTop_toTopOf="parent"/> - - - + android:textSize="@dimen/text_size_medium"/> + android:textSize="@dimen/text_size_large" + tools:text="3748378347"/> + android:textSize="@dimen/text_size_medium"/> + - + \ No newline at end of file diff --git a/app/src/main/res/layout/activity_logo.xml b/app/src/main/res/layout/activity_logo.xml index dd456c34ae..e53f1dde99 100644 --- a/app/src/main/res/layout/activity_logo.xml +++ b/app/src/main/res/layout/activity_logo.xml @@ -23,11 +23,11 @@ android:layout_gravity="bottom" android:fontFamily="@font/raleway_r" android:gravity="center_horizontal" - android:text="BETA" + android:text="@string/beta" android:textAlignment="center" android:textAppearance="@style/TextAppearance.AppCompat.Medium" android:textColor="@android:color/holo_red_light" - android:textSize="12dp"/> + android:textSize="@dimen/text_size_small"/> + android:textSize="@dimen/text_size_small"/> diff --git a/app/src/main/res/layout/activity_main.xml b/app/src/main/res/layout/activity_main.xml index 05dd10f240..21ecb1fa1e 100644 --- a/app/src/main/res/layout/activity_main.xml +++ b/app/src/main/res/layout/activity_main.xml @@ -7,12 +7,6 @@ android:layout_height="match_parent" tools:context="com.tangem.presentation.activity.MainActivity"> - - - - - - @@ -47,6 +42,7 @@ android:layout_width="match_parent" android:layout_height="match_parent" android:layout_marginLeft="100dp" + android:layout_marginRight="100dp" android:elevation="1dp" android:gravity="center" android:orientation="vertical"> @@ -55,10 +51,6 @@ android:id="@+id/imNFC" android:layout_width="150dp" android:layout_height="150dp" - android:layout_alignParentStart="false" - android:layout_alignParentTop="false" - android:layout_centerHorizontal="false" - android:layout_centerInParent="false" app:rb_color="@color/fab" app:rb_duration="3000" app:rb_radius="16dp" @@ -84,6 +76,7 @@ android:layout_width="190dp" android:layout_height="wrap_content" app:srcCompat="@drawable/hand_card"/> + @@ -95,15 +88,14 @@ android:layout_marginLeft="24dp" android:layout_marginRight="24dp" android:layout_marginTop="24dp" - android:autoText="false" android:fontFamily="@font/raleway_el" android:gravity="top" - android:text="Tap Tangem card with your smartphone" + android:text="@string/tap_tangem_card" android:textAlignment="center" android:textAllCaps="false" android:textAppearance="@style/TextAppearance.AppCompat.Medium" android:textColor="@color/primary_dark" - android:textSize="18dp"/> + android:textSize="@dimen/text_size_medium"/> @@ -113,7 +105,6 @@ android:layout_width="match_parent" android:layout_height="match_parent"/> - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/app/src/main/res/layout/activity_prepare_payment.xml b/app/src/main/res/layout/activity_prepare_payment.xml index 82ff2954e9..ec077dbd95 100644 --- a/app/src/main/res/layout/activity_prepare_payment.xml +++ b/app/src/main/res/layout/activity_prepare_payment.xml @@ -14,15 +14,14 @@ android:fontFamily="@font/raleway_r" android:paddingBottom="8dp" android:paddingTop="8dp" - android:text="Send payment" + android:text="@string/send_payment" android:textAlignment="center" android:textColor="@color/primary" - android:textSize="@dimen/font_large" + android:textSize="@dimen/text_size_large" app:layout_constraintLeft_toLeftOf="parent" app:layout_constraintRight_toRightOf="parent" app:layout_constraintTop_toTopOf="parent"/> - + android:textSize="@dimen/text_size_medium"/> + android:textSize="@dimen/text_size_medium"/> + android:textSize="@dimen/text_size_medium" + android:textStyle="bold" + tools:text="$232"/> + android:textSize="@dimen/text_size_1_small" + tools:text="$132"/> @@ -122,12 +121,12 @@ android:id="@+id/textView2" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:layout_marginLeft="8dp" + android:layout_marginStart="8dp" android:layout_marginTop="4dp" android:fontFamily="@font/raleway_r" - android:text="Send to wallet" + android:text="@string/send_to_wallet" android:textColor="@color/primary" - android:textSize="@dimen/font_normal" + android:textSize="@dimen/text_size_medium" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintLeft_toLeftOf="parent" app:layout_constraintTop_toTopOf="parent"/> @@ -136,26 +135,27 @@ android:id="@+id/ivCamera" android:layout_width="32dp" android:layout_height="32dp" - android:layout_marginLeft="12dp" + android:layout_marginStart="12dp" android:src="@drawable/qr_scan" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintRight_toRightOf="parent" app:layout_constraintTop_toTopOf="parent"/> + @@ -169,12 +169,12 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginBottom="8dp" - android:layout_marginLeft="7dp" + android:layout_marginStart="7dp" android:layout_marginTop="24dp" android:fontFamily="@font/raleway_r" - android:text="Amount" + android:text="@string/amount" android:textColor="@color/primary" - android:textSize="@dimen/font_normal" + android:textSize="@dimen/text_size_medium" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintLeft_toLeftOf="parent" app:layout_constraintTop_toTopOf="parent"/> @@ -184,11 +184,11 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginBottom="1dp" - android:layout_marginLeft="4dp" + android:layout_marginStart="4dp" android:fontFamily="@font/raleway_r" - android:text="(including fee)" + android:text="@string/including_fee" android:textColor="@color/primary" - android:textSize="14dp" + android:textSize="@dimen/text_size_1_small" app:layout_constraintBottom_toBottomOf="@+id/textView3" app:layout_constraintLeft_toRightOf="@+id/textView3"/> @@ -201,14 +201,13 @@ android:id="@+id/etAmount" android:layout_width="0dp" android:layout_height="wrap_content" - android:layout_marginLeft="8dp" - android:editable="false" + android:layout_marginStart="8dp" android:fontFamily="@font/montserrat_light" - android:hint="enter amount" + android:hint="@string/enter_amount" android:inputType="numberDecimal" android:padding="12dp" android:textColor="@color/colorPrimaryDark" - android:textSize="24dp" + android:textSize="@dimen/text_size_large" android:textStyle="bold" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintLeft_toLeftOf="parent" @@ -220,11 +219,11 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginBottom="8dp" - android:layout_marginLeft="8dp" + android:layout_marginStart="8dp" android:fontFamily="@font/montserrat_light" - android:text="mBTC" + android:text="@string/m_btc" android:textColor="@color/primary" - android:textSize="24dp" + android:textSize="@dimen/text_size_large" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintLeft_toRightOf="@+id/etAmount"/> @@ -233,11 +232,10 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginBottom="4dp" - android:layout_marginLeft="8dp" + android:layout_marginStart="8dp" android:fontFamily="@font/montserrat_light" - android:text=" " android:textColor="@android:color/darker_gray" - android:textSize="14dp" + android:textSize="@dimen/text_size_1_small" app:layout_constraintBottom_toBottomOf="@+id/tvCurrency" app:layout_constraintLeft_toRightOf="@+id/tvCurrency"/> @@ -254,11 +252,11 @@ android:backgroundTint="@color/colorPrimary" android:fontFamily="@font/raleway_r" android:includeFontPadding="false" - android:text="Verify" + android:text="@string/verify" android:textColor="@color/white" - android:textSize="@dimen/font_large" + android:textSize="@dimen/text_size_large" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintLeft_toLeftOf="parent" app:layout_constraintRight_toRightOf="parent"/> - + \ No newline at end of file diff --git a/app/src/main/res/layout/activity_purge.xml b/app/src/main/res/layout/activity_purge.xml index 81bb773db5..ef9111325c 100644 --- a/app/src/main/res/layout/activity_purge.xml +++ b/app/src/main/res/layout/activity_purge.xml @@ -18,9 +18,9 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:fontFamily="@font/raleway_r" - android:text="Now touch the banknote with ID" + android:text="@string/now_touch_the_banknote_with_id" android:textAlignment="center" - android:textSize="@dimen/font_normal"/> + android:textSize="@dimen/text_size_medium"/> + android:textSize="@dimen/text_size_large" + tools:text="3748378347"/> + android:textSize="@dimen/text_size_medium"/> diff --git a/app/src/main/res/layout/activity_request_pin.xml b/app/src/main/res/layout/activity_request_pin.xml index 5bfd185cde..7e8c136bff 100644 --- a/app/src/main/res/layout/activity_request_pin.xml +++ b/app/src/main/res/layout/activity_request_pin.xml @@ -6,25 +6,6 @@ android:gravity="center_horizontal" android:orientation="vertical" tools:context="com.tangem.presentation.activity.RequestPINActivity"> - - - - - - - - - - - - - - - - - - - - - - - - - - - - + android:textSize="36sp" + tools:text="12345"/> + android:background="@mipmap/ic_fp"/> + android:textSize="@dimen/text_size_medium"/> + @@ -95,12 +68,10 @@ style="@android:style/Widget.DeviceDefault.Button.Borderless" android:layout_width="@dimen/pin_button_size" android:layout_height="@dimen/pin_button_size" - android:layout_alignParentTop="true" - android:layout_alignStart="@+id/gridLayout" android:layout_marginTop="8dp" android:fontFamily="@font/montserrat_light" android:text="1" - android:textSize="32dp"/> + android:textSize="@dimen/text_size_pin"/>