From e2f3761a8289dcbd931aac8453176ec063d2a8a7 Mon Sep 17 00:00:00 2001 From: Severiano Jaramillo Date: Thu, 29 Nov 2018 13:14:45 -0600 Subject: [PATCH] Migrate Crystal's theme to the new MaterialComponents style. Also update all buttons in the app to use the new MaterialButton. --- .../activities/LicenseActivity.java | 4 +- .../res/animator/button_state_list_anim.xml | 93 +++++++++++++++++++ app/src/main/res/layout/activity_accounts.xml | 1 - .../res/layout/activity_create_contact.xml | 39 ++++---- app/src/main/res/layout/activity_license.xml | 44 ++++----- app/src/main/res/layout/contact_list_item.xml | 2 +- app/src/main/res/layout/create_seed.xml | 53 ++++------- .../res/layout/fragment_accounts_settings.xml | 29 ++---- .../res/layout/fragment_backups_settings.xml | 24 ++--- .../layout/fragment_bitshares_settings.xml | 5 +- ...nt_general_crypto_net_account_settings.xml | 7 +- .../res/layout/fragment_general_settings.xml | 6 +- .../fragment_import_account_options.xml | 23 ++--- .../res/layout/fragment_none_security.xml | 5 +- .../main/res/layout/fragment_pin_security.xml | 11 +-- app/src/main/res/layout/import_seed.xml | 45 ++++----- .../main/res/layout/transaction_list_item.xml | 12 +-- app/src/main/res/values/styles.xml | 28 ++---- 18 files changed, 225 insertions(+), 206 deletions(-) create mode 100644 app/src/main/res/animator/button_state_list_anim.xml diff --git a/app/src/main/java/cy/agorise/crystalwallet/activities/LicenseActivity.java b/app/src/main/java/cy/agorise/crystalwallet/activities/LicenseActivity.java index 00dbede..ec83552 100644 --- a/app/src/main/java/cy/agorise/crystalwallet/activities/LicenseActivity.java +++ b/app/src/main/java/cy/agorise/crystalwallet/activities/LicenseActivity.java @@ -21,7 +21,7 @@ public class LicenseActivity extends AppCompatActivity { @BindView(R.id.wvEULA) WebView wvEULA; - @BindView(R.id.btnDisAgree) + @BindView(R.id.btnDisagree) Button btnDisAgree; @BindView(R.id.btnAgree) @@ -91,7 +91,7 @@ public class LicenseActivity extends AppCompatActivity { finish(); } - @OnClick(R.id.btnDisAgree) + @OnClick(R.id.btnDisagree) public void onDisagree() { finish(); } diff --git a/app/src/main/res/animator/button_state_list_anim.xml b/app/src/main/res/animator/button_state_list_anim.xml new file mode 100644 index 0000000..22f62c3 --- /dev/null +++ b/app/src/main/res/animator/button_state_list_anim.xml @@ -0,0 +1,93 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/app/src/main/res/layout/activity_accounts.xml b/app/src/main/res/layout/activity_accounts.xml index d9471ba..289b1dd 100644 --- a/app/src/main/res/layout/activity_accounts.xml +++ b/app/src/main/res/layout/activity_accounts.xml @@ -87,7 +87,6 @@ android:visibility="visible" app:backgroundTint="@color/colorPrimary" app:fabSize="normal" - android:theme="@style/BlueButton" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintTop_toTopOf="@id/secondView" app:srcCompat="@drawable/ic_add_24dp" /> diff --git a/app/src/main/res/layout/activity_create_contact.xml b/app/src/main/res/layout/activity_create_contact.xml index 02884b4..190d98f 100644 --- a/app/src/main/res/layout/activity_create_contact.xml +++ b/app/src/main/res/layout/activity_create_contact.xml @@ -43,7 +43,7 @@ android:layout_marginTop="8dp" android:layout_marginStart="@dimen/activity_horizontal_margin" android:text="Crypto addresses" - android:textAppearance="@style/TextAppearance.Body1" + android:textAppearance="@style/TextAppearance.Crystal.Body1" android:textStyle="bold" app:layout_constraintTop_toTopOf="@id/btnAddAddress" app:layout_constraintStart_toStartOf="parent"/> @@ -58,26 +58,29 @@ tools:listitem="@layout/contact_address_list_item" tools:itemCount="1"/> -