Skip to content
This repository was archived by the owner on Jul 22, 2024. It is now read-only.

Commit 4308134

Browse files
authored
Add margins to the FPS and controls in noapi (#2943)
This lets you see things better with the curved corners on newers phones like the Pixel 4.
1 parent 09f721f commit 4308134

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

app/src/main/res/layout/noapi_layout.xml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
<GridLayout
1818
android:layout_width="wrap_content"
1919
android:layout_height="wrap_content"
20+
android:layout_marginStart="24dp"
2021
android:columnCount="3"
2122
android:rowCount="3"
2223
app:layout_constraintBottom_toBottomOf="parent"
@@ -43,8 +44,8 @@
4344
android:id="@+id/home_button"
4445
android:layout_width="wrap_content"
4546
android:layout_height="wrap_content"
46-
android:layout_column="1"
4747
android:layout_row="1"
48+
android:layout_column="1"
4849
android:src="@drawable/ic_crow_black_24px" />
4950

5051
<ImageButton
@@ -67,16 +68,16 @@
6768
android:id="@+id/left_turn_button"
6869
android:layout_width="wrap_content"
6970
android:layout_height="wrap_content"
70-
android:layout_column="0"
7171
android:layout_row="2"
72+
android:layout_column="0"
7273
android:src="@drawable/ic_rotate_left_black_24px" />
7374

7475
<ImageButton
7576
android:id="@+id/right_turn_button"
7677
android:layout_width="wrap_content"
7778
android:layout_height="wrap_content"
78-
android:layout_column="2"
7979
android:layout_row="2"
80+
android:layout_column="2"
8081
android:src="@drawable/ic_rotate_right_black_24px" />
8182

8283
<ImageButton
@@ -100,6 +101,7 @@
100101
<GridLayout
101102
android:layout_width="wrap_content"
102103
android:layout_height="wrap_content"
104+
android:layout_marginEnd="24dp"
103105
android:columnCount="3"
104106
android:rowCount="2"
105107
app:layout_constraintBottom_toBottomOf="parent"
@@ -144,10 +146,10 @@
144146
android:id="@+id/frame_rate_text"
145147
android:layout_width="wrap_content"
146148
android:layout_height="wrap_content"
149+
android:layout_marginStart="24dp"
147150
android:background="#000000"
148151
app:layout_constraintStart_toStartOf="@+id/gl_view"
149152
app:layout_constraintTop_toTopOf="@+id/gl_view" />
150153

151154

152-
153155
</androidx.constraintlayout.widget.ConstraintLayout>

0 commit comments

Comments
 (0)