From 625848bd9dc3dff24d63d1098ed234b7025641d7 Mon Sep 17 00:00:00 2001 From: Christian Basler Date: Mon, 14 Aug 2017 19:51:16 +0200 Subject: [PATCH] Improved FAB and added translation for showcase button --- .../res/drawable/mini_fab_text_background.xml | 15 +++++++++ .../main/res/layout-w720dp/activity_main.xml | 32 ++++++++++++------- app/src/main/res/layout/activity_main.xml | 6 ++-- app/src/main/res/layout/showcase_button.xml | 2 +- app/src/main/res/values-de/strings.xml | 1 + app/src/main/res/values/strings.xml | 1 + 6 files changed, 42 insertions(+), 15 deletions(-) create mode 100644 app/src/main/res/drawable/mini_fab_text_background.xml diff --git a/app/src/main/res/drawable/mini_fab_text_background.xml b/app/src/main/res/drawable/mini_fab_text_background.xml new file mode 100644 index 0000000..e522537 --- /dev/null +++ b/app/src/main/res/drawable/mini_fab_text_background.xml @@ -0,0 +1,15 @@ + + + + + + + + + + + + + + + diff --git a/app/src/main/res/layout-w720dp/activity_main.xml b/app/src/main/res/layout-w720dp/activity_main.xml index 4a5f199..5645cbf 100644 --- a/app/src/main/res/layout-w720dp/activity_main.xml +++ b/app/src/main/res/layout-w720dp/activity_main.xml @@ -8,7 +8,7 @@ + tools:layout_editor_absoluteX="0dp" /> + app:layout_constraintGuide_percent="0.382" + tools:layout_editor_absoluteX="306dp" + tools:layout_editor_absoluteY="0dp" /> + tools:layout_editor_absoluteX="0dp" /> + tools:layout="@layout/fragment_message_detail" + tools:layout_editor_absoluteX="306dp" /> + app:layout_constraintBottom_toBottomOf="parent" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toTopOf="parent" + tools:ignore="UnusedAttribute" + tools:layout_editor_absoluteX="8dp" /> diff --git a/app/src/main/res/layout/activity_main.xml b/app/src/main/res/layout/activity_main.xml index d0f1aee..4292558 100644 --- a/app/src/main/res/layout/activity_main.xml +++ b/app/src/main/res/layout/activity_main.xml @@ -29,7 +29,9 @@ android:layout_width="match_parent" android:layout_height="match_parent" app:fab_useTouchGuard="true" - app:fab_miniFabTextBackground="@color/colorAccent" - app:fab_miniFabTextColor="@color/colorPrimaryDarkText" /> + android:elevation="4dp" + app:fab_miniFabTextBackground="@drawable/mini_fab_text_background" + app:fab_miniFabTextColor="@color/colorPrimaryDarkText" + tools:ignore="UnusedAttribute" /> diff --git a/app/src/main/res/layout/showcase_button.xml b/app/src/main/res/layout/showcase_button.xml index 5772c83..2fce3f2 100644 --- a/app/src/main/res/layout/showcase_button.xml +++ b/app/src/main/res/layout/showcase_button.xml @@ -3,7 +3,7 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:background="@drawable/material_showcase_button_bg" - android:text="Got it" + android:text="@string/got_it" android:textAllCaps="true" android:textColor="@android:color/white" android:textSize="13sp" diff --git a/app/src/main/res/values-de/strings.xml b/app/src/main/res/values-de/strings.xml index bb54ff0..e78784e 100644 --- a/app/src/main/res/values-de/strings.xml +++ b/app/src/main/res/values-de/strings.xml @@ -123,4 +123,5 @@ Als Alternative kann in den Einstellungen ein vertrauenswürdiger Knoten konfigu Alle Nachrichten und Kontakte exportieren (aber keine Identitäten) Bestätigungen verlangen Bestätigungen stellen sicher dass eine Nachricht empfangen wurde, benötigen aber zusätzliche Zeit zum versenden + Alles klar diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index decb1fb..19b4f4b 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -122,4 +122,5 @@ As an alternative you could configure a trusted node in the settings, but as of Export all messages and contacts (but not identities) Request acknowledgements Acknowledges allow making sure a message was received, but require additional time to send + Got it