diff options
author | Iván Ávalos <avalos@disroot.org> | 2022-01-15 20:08:37 -0600 |
---|---|---|
committer | Iván Ávalos <avalos@disroot.org> | 2022-01-15 20:08:37 -0600 |
commit | 6aa78c8ddbcdeaace0f4596e7c717dafef036f03 (patch) | |
tree | 2bfcaff8312058e4c16cc238ded881f59727983e /androidApp/src/main/res/layout/units_activity.xml | |
parent | d16483ddb5f9989315db95fe2d70747c04ebc657 (diff) | |
download | etbsa-trackermap-mobile-6aa78c8ddbcdeaace0f4596e7c717dafef036f03.tar.gz etbsa-trackermap-mobile-6aa78c8ddbcdeaace0f4596e7c717dafef036f03.tar.bz2 etbsa-trackermap-mobile-6aa78c8ddbcdeaace0f4596e7c717dafef036f03.zip |
Improved loading indicators, improved layout semantics, added translations and changed default view to MAP
Diffstat (limited to 'androidApp/src/main/res/layout/units_activity.xml')
-rw-r--r-- | androidApp/src/main/res/layout/units_activity.xml | 28 |
1 files changed, 15 insertions, 13 deletions
diff --git a/androidApp/src/main/res/layout/units_activity.xml b/androidApp/src/main/res/layout/units_activity.xml index 86fd99c..a468151 100644 --- a/androidApp/src/main/res/layout/units_activity.xml +++ b/androidApp/src/main/res/layout/units_activity.xml @@ -17,19 +17,18 @@ app:layout_constraintTop_toTopOf="parent" /> <com.google.android.material.floatingactionbutton.FloatingActionButton - android:id="@+id/userButton" + android:id="@+id/displayModeToggle" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:layout_marginStart="@dimen/fab_margin" android:layout_marginTop="@dimen/fab_margin" + android:layout_marginStart="@dimen/fab_margin" android:backgroundTint="@android:color/white" - android:contentDescription="@string/open_profile" - android:src="@drawable/device_contact" app:borderWidth="0dp" app:elevation="@dimen/fab_elevation" app:fabSize="mini" app:layout_constraintStart_toStartOf="parent" - app:layout_constraintTop_toTopOf="parent" /> + app:layout_constraintTop_toTopOf="parent" + tools:ignore="ContentDescription" /> <com.google.android.material.card.MaterialCardView android:layout_width="0dp" @@ -38,10 +37,10 @@ android:layout_marginVertical="@dimen/search_vertical_margin" app:cardCornerRadius="@dimen/card_border_radius" app:cardElevation="@dimen/card_elevation" - app:layout_constraintBottom_toBottomOf="@id/displayModeToggle" + app:layout_constraintBottom_toBottomOf="@id/userButton" app:layout_constraintEnd_toStartOf="@id/mapLayerToggle" - app:layout_constraintStart_toEndOf="@id/userButton" - app:layout_constraintTop_toTopOf="@id/displayModeToggle"> + app:layout_constraintStart_toEndOf="@id/displayModeToggle" + app:layout_constraintTop_toTopOf="@id/userButton"> <com.google.android.material.textfield.TextInputLayout android:id="@+id/searchInputLayout" @@ -50,6 +49,8 @@ app:endIconMode="clear_text" app:boxBackgroundMode="none" app:boxStrokeWidth="0dp" + app:startIconDrawable="@drawable/icon_search" + app:startIconTint="@android:color/black" app:hintEnabled="false"> <com.google.android.material.textfield.TextInputEditText @@ -80,21 +81,22 @@ app:borderWidth="0dp" app:elevation="@dimen/fab_elevation" app:fabSize="mini" - app:layout_constraintEnd_toStartOf="@id/displayModeToggle" + app:layout_constraintEnd_toStartOf="@id/userButton" app:layout_constraintTop_toTopOf="parent" /> <com.google.android.material.floatingactionbutton.FloatingActionButton - android:id="@+id/displayModeToggle" + android:id="@+id/userButton" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:layout_marginTop="@dimen/fab_margin" android:layout_marginEnd="@dimen/fab_margin" + android:layout_marginTop="@dimen/fab_margin" android:backgroundTint="@android:color/white" + android:contentDescription="@string/open_profile" + android:src="@drawable/device_contact" app:borderWidth="0dp" app:elevation="@dimen/fab_elevation" app:fabSize="mini" app:layout_constraintEnd_toEndOf="parent" - app:layout_constraintTop_toTopOf="parent" - tools:ignore="ContentDescription" /> + app:layout_constraintTop_toTopOf="parent"/> </androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file |