From 39253cd1c24cb82aa40439daa7d735cb83360fe5 Mon Sep 17 00:00:00 2001 From: Iván Ávalos Date: Sun, 16 Jan 2022 16:28:24 -0600 Subject: Added fake close button to unit_map_fragment.xml --- androidApp/src/main/res/drawable/icon_close.xml | 10 +++++ .../src/main/res/layout/unit_map_fragment.xml | 45 ++++++++++++++++------ androidApp/src/main/res/values-es-rMX/strings.xml | 3 +- androidApp/src/main/res/values/strings.xml | 1 + 4 files changed, 46 insertions(+), 13 deletions(-) create mode 100644 androidApp/src/main/res/drawable/icon_close.xml diff --git a/androidApp/src/main/res/drawable/icon_close.xml b/androidApp/src/main/res/drawable/icon_close.xml new file mode 100644 index 0000000..16d6d37 --- /dev/null +++ b/androidApp/src/main/res/drawable/icon_close.xml @@ -0,0 +1,10 @@ + + + diff --git a/androidApp/src/main/res/layout/unit_map_fragment.xml b/androidApp/src/main/res/layout/unit_map_fragment.xml index 8395013..e2bee95 100644 --- a/androidApp/src/main/res/layout/unit_map_fragment.xml +++ b/androidApp/src/main/res/layout/unit_map_fragment.xml @@ -30,20 +30,25 @@ app:contentPaddingTop="@dimen/card_padding" app:contentPaddingLeft="@dimen/card_padding" app:contentPaddingRight="@dimen/card_padding" - android:visibility="gone"> + android:animateLayoutChanges="true" + android:visibility="gone" + tools:visibility="visible"> - + android:orientation="vertical"> + android:orientation="horizontal" + app:layout_constraintEnd_toStartOf="@+id/closeButton" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toTopOf="parent"> + + + android:layout_width="0dp" + android:layout_height="wrap_content" + app:layout_constraintTop_toBottomOf="@id/titleLayout" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintEnd_toEndOf="parent" /> + android:visibility="visible" + app:layout_constraintTop_toBottomOf="@id/gridLayout" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintBottom_toBottomOf="parent"> - + diff --git a/androidApp/src/main/res/values-es-rMX/strings.xml b/androidApp/src/main/res/values-es-rMX/strings.xml index f843c29..d228c28 100644 --- a/androidApp/src/main/res/values-es-rMX/strings.xml +++ b/androidApp/src/main/res/values-es-rMX/strings.xml @@ -2,7 +2,8 @@ OK - Cancel + Cancelar + Cerrar Nombre de usuario diff --git a/androidApp/src/main/res/values/strings.xml b/androidApp/src/main/res/values/strings.xml index 60547d3..d2c6148 100644 --- a/androidApp/src/main/res/values/strings.xml +++ b/androidApp/src/main/res/values/strings.xml @@ -16,6 +16,7 @@ OK Cancel + Close Username -- cgit v1.2.3