diff options
Diffstat (limited to 'androidApp/src/main/res/layout/unit_map_fragment.xml')
-rw-r--r-- | androidApp/src/main/res/layout/unit_map_fragment.xml | 62 |
1 files changed, 33 insertions, 29 deletions
diff --git a/androidApp/src/main/res/layout/unit_map_fragment.xml b/androidApp/src/main/res/layout/unit_map_fragment.xml index a920b14..87eb4ac 100644 --- a/androidApp/src/main/res/layout/unit_map_fragment.xml +++ b/androidApp/src/main/res/layout/unit_map_fragment.xml @@ -31,50 +31,54 @@ app:contentPaddingRight="@dimen/card_padding" android:visibility="gone"> - <RelativeLayout + <LinearLayout android:id="@+id/mainContent" android:layout_width="match_parent" android:layout_height="wrap_content" + android:orientation="vertical" android:animateLayoutChanges="true"> - <ImageView - android:id="@+id/statusIcon" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:layout_marginEnd="5dp" - android:src="@drawable/device_status" - app:tint="?android:textColorPrimary" - tools:ignore="ContentDescription" /> - - <ImageView - android:id="@+id/engineStopIcon" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:layout_toEndOf="@id/statusIcon" - android:visibility="gone" - android:layout_marginEnd="5dp" - android:src="@drawable/device_unlocked" - tools:ignore="ContentDescription" /> - - <TextView - android:id="@+id/unitName" + <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" - android:layout_toEndOf="@id/engineStopIcon" - style="@style/TextAppearance.AppCompat.Body2" - tools:text="1AAUTO" /> + android:orientation="horizontal"> + + <ImageView + android:id="@+id/statusIcon" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginEnd="5dp" + android:src="@drawable/device_status" + app:tint="?android:textColorPrimary" + tools:ignore="ContentDescription" /> + + <ImageView + android:id="@+id/engineStopIcon" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:visibility="gone" + android:layout_marginEnd="5dp" + android:src="@drawable/device_unlocked" + tools:ignore="ContentDescription" /> + + <TextView + android:id="@+id/unitName" + android:layout_width="match_parent" + android:layout_height="wrap_content" + style="@style/TextAppearance.AppCompat.Body2" + tools:text="1AAUTO" /> + + </LinearLayout> <GridLayout android:id="@+id/gridLayout" android:layout_width="match_parent" - android:layout_height="wrap_content" - android:layout_below="@id/unitName" /> + android:layout_height="wrap_content" /> <LinearLayout android:id="@+id/itemOptions" android:layout_width="match_parent" android:layout_height="wrap_content" - android:layout_below="@id/gridLayout" android:layout_marginVertical="@dimen/padding" android:gravity="center" android:orientation="horizontal" @@ -112,7 +116,7 @@ </LinearLayout> - </RelativeLayout> + </LinearLayout> </androidx.cardview.widget.CardView> |