diff options
author | Iván Ávalos <avalos@disroot.org> | 2022-01-12 23:11:46 -0600 |
---|---|---|
committer | Iván Ávalos <avalos@disroot.org> | 2022-01-12 23:11:46 -0600 |
commit | 2bdf011e61db6899a3a44a5357a0100b045767f9 (patch) | |
tree | b300c73fa93f4da8e8feef017ad6d6c85d75d410 /androidApp/src/main/res/layout/unit_details_commands.xml | |
parent | a13e418f74397653e028e38084f0f8f09492419e (diff) | |
download | etbsa-trackermap-mobile-2bdf011e61db6899a3a44a5357a0100b045767f9.tar.gz etbsa-trackermap-mobile-2bdf011e61db6899a3a44a5357a0100b045767f9.tar.bz2 etbsa-trackermap-mobile-2bdf011e61db6899a3a44a5357a0100b045767f9.zip |
Improved design of commands
Diffstat (limited to 'androidApp/src/main/res/layout/unit_details_commands.xml')
-rw-r--r-- | androidApp/src/main/res/layout/unit_details_commands.xml | 22 |
1 files changed, 16 insertions, 6 deletions
diff --git a/androidApp/src/main/res/layout/unit_details_commands.xml b/androidApp/src/main/res/layout/unit_details_commands.xml index e98b113..6e1d7b2 100644 --- a/androidApp/src/main/res/layout/unit_details_commands.xml +++ b/androidApp/src/main/res/layout/unit_details_commands.xml @@ -5,16 +5,26 @@ android:layout_width="match_parent" android:layout_height="match_parent"> - <ListView - android:id="@+id/commandsList" + <com.google.android.material.card.MaterialCardView + android:id="@+id/commandsCard" android:layout_width="0dp" android:layout_height="0dp" - android:choiceMode="singleChoice" - android:listSelector="@color/darkBackground" + app:cardCornerRadius="@dimen/card_border_radius" + app:cardElevation="@dimen/card_elevation" + app:cardUseCompatPadding="true" app:layout_constraintBottom_toTopOf="@id/sendCommandButton" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" - app:layout_constraintTop_toTopOf="parent" /> + app:layout_constraintTop_toTopOf="parent"> + + <ListView + android:id="@+id/commandsList" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:choiceMode="singleChoice" + android:listSelector="@color/darkBackground" /> + + </com.google.android.material.card.MaterialCardView> <com.google.android.material.button.MaterialButton android:id="@+id/sendCommandButton" @@ -25,6 +35,6 @@ app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" - app:layout_constraintTop_toBottomOf="@id/commandsList" /> + app:layout_constraintTop_toBottomOf="@id/commandsCard" /> </androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file |