Skip to content

Commit

Permalink
automatically align elements in the top bar
Browse files Browse the repository at this point in the history
  • Loading branch information
Ugzuzg committed May 18, 2024
1 parent a6f76b2 commit 3d4ffd5
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions app/src/main/res/layout/activity_gui.xml
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@
android:id="@+id/signal"
android:layout_width="match_parent"
android:layout_height="25dp"
android:layout_centerVertical="true"
android:gravity="center_vertical"
android:background="@color/dark_gray"
android:orientation="horizontal">

Expand All @@ -238,7 +238,6 @@
android:layout_height="25dp" />

<ImageView
android:layout_marginTop="3dp"
android:id="@+id/dji_conn"
android:layout_width="18dp"
android:layout_height="18dp"
Expand All @@ -247,14 +246,12 @@

<TextView
android:layout_weight="1"
android:layout_marginTop="3dp"
android:layout_width="35dp"
android:layout_height="20dp"
android:text="@string/dji"
android:textColor="@color/white" />

<ImageView
android:layout_marginTop="3dp"
android:id="@+id/gcs_conn"
android:layout_width="18dp"
android:layout_height="18dp"
Expand All @@ -263,15 +260,13 @@

<TextView
android:layout_weight="1"
android:layout_marginTop="3dp"
android:layout_width="35dp"
android:layout_height="20dp"
android:text="@string/gcs"
android:textColor="@color/white" />

<dji.ux.widget.FlightModeWidget
android:layout_weight="1"
android:layout_marginTop="2dp"
android:layout_width="103dp"
android:layout_height="22dp" />

Expand Down Expand Up @@ -308,20 +303,17 @@

<dji.ux.widget.ConnectionWidget
android:layout_weight="1"
android:layout_marginTop="3dp"
android:layout_width="28dp"
android:layout_height="18dp" />

<Button
android:id="@+id/btn_safety"
android:layout_width="20dp"
android:layout_height="20dp"
android:layout_marginTop="2dp"
android:background="@drawable/ic_lock_outline_secondary_24dp" />

<TextView
android:layout_weight="1"
android:layout_marginTop="3dp"
android:layout_width="25dp"
android:layout_height="20dp"
android:text="" />
Expand All @@ -330,9 +322,9 @@
android:id="@+id/btn_config"
android:layout_width="20dp"
android:layout_height="20dp"
android:layout_marginTop="3dp"
android:background="@drawable/ic_settings_white_24dp"
android:onClick="showPopup" />
android:onClick="showPopup"
android:layout_marginEnd="8dp" />
</LinearLayout>


Expand Down

0 comments on commit 3d4ffd5

Please sign in to comment.