From 430e643ec7aefd7a2bb51bc4d6dfa6c71cac42cd Mon Sep 17 00:00:00 2001 From: Iván Ávalos Date: Thu, 13 Jan 2022 00:40:40 -0600 Subject: Finished and redesigned UserInformationActivity and added About section --- .../details/information/UnitInformationFragment.kt | 2 +- androidApp/src/main/res/drawable/icon_back.xml | 11 + .../main/res/layout/user_information_activity.xml | 312 ++++++++++++--------- androidApp/src/main/res/values/dimen.xml | 1 + 4 files changed, 197 insertions(+), 129 deletions(-) create mode 100644 androidApp/src/main/res/drawable/icon_back.xml (limited to 'androidApp/src') diff --git a/androidApp/src/main/java/mx/trackermap/TrackerMap/android/details/information/UnitInformationFragment.kt b/androidApp/src/main/java/mx/trackermap/TrackerMap/android/details/information/UnitInformationFragment.kt index 12ea352..f5a1e13 100644 --- a/androidApp/src/main/java/mx/trackermap/TrackerMap/android/details/information/UnitInformationFragment.kt +++ b/androidApp/src/main/java/mx/trackermap/TrackerMap/android/details/information/UnitInformationFragment.kt @@ -103,7 +103,7 @@ class UnitInformationFragment : Fragment() { LinearLayout.LayoutParams.MATCH_PARENT, LinearLayout.LayoutParams.WRAP_CONTENT ) - params.setMargins(0, 0, 0, resources.getDimensionPixelSize(R.dimen.padding)) + params.setMargins(0, 0, 0, resources.getDimensionPixelSize(R.dimen.fields_spacing)) layout.layoutParams = params val text1 = TextView(context) diff --git a/androidApp/src/main/res/drawable/icon_back.xml b/androidApp/src/main/res/drawable/icon_back.xml new file mode 100644 index 0000000..2a31b2e --- /dev/null +++ b/androidApp/src/main/res/drawable/icon_back.xml @@ -0,0 +1,11 @@ + + + diff --git a/androidApp/src/main/res/layout/user_information_activity.xml b/androidApp/src/main/res/layout/user_information_activity.xml index 8bb994a..0b4924a 100644 --- a/androidApp/src/main/res/layout/user_information_activity.xml +++ b/androidApp/src/main/res/layout/user_information_activity.xml @@ -14,143 +14,199 @@ app:layout_constraintStart_toStartOf="parent" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintBottom_toBottomOf="parent" + android:translationZ="2dp" android:visibility="gone"/> - + + + app:layout_constraintBottom_toBottomOf="parent"> - + android:layout_height="wrap_content" + android:orientation="vertical"> - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - + app:contentPadding="@dimen/card_padding" + app:cardCornerRadius="@dimen/card_border_radius" + app:cardElevation="@dimen/card_elevation"> + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/androidApp/src/main/res/values/dimen.xml b/androidApp/src/main/res/values/dimen.xml index 25d0e98..2d0dcc3 100644 --- a/androidApp/src/main/res/values/dimen.xml +++ b/androidApp/src/main/res/values/dimen.xml @@ -23,4 +23,5 @@ 8dp + 16dp \ No newline at end of file -- cgit v1.2.3