Skip to content

Commit

Permalink
Add margins to the FPS and controls in noapi (#2943)
Browse files Browse the repository at this point in the history
This lets you see things better with the curved corners
on newers phones like the Pixel 4.
  • Loading branch information
snorp committed Mar 11, 2020
1 parent 09f721f commit 4308134
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions app/src/main/res/layout/noapi_layout.xml
Expand Up @@ -17,6 +17,7 @@
<GridLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="24dp"
android:columnCount="3"
android:rowCount="3"
app:layout_constraintBottom_toBottomOf="parent"
Expand All @@ -43,8 +44,8 @@
android:id="@+id/home_button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_column="1"
android:layout_row="1"
android:layout_column="1"
android:src="@drawable/ic_crow_black_24px" />

<ImageButton
Expand All @@ -67,16 +68,16 @@
android:id="@+id/left_turn_button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_column="0"
android:layout_row="2"
android:layout_column="0"
android:src="@drawable/ic_rotate_left_black_24px" />

<ImageButton
android:id="@+id/right_turn_button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_column="2"
android:layout_row="2"
android:layout_column="2"
android:src="@drawable/ic_rotate_right_black_24px" />

<ImageButton
Expand All @@ -100,6 +101,7 @@
<GridLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginEnd="24dp"
android:columnCount="3"
android:rowCount="2"
app:layout_constraintBottom_toBottomOf="parent"
Expand Down Expand Up @@ -144,10 +146,10 @@
android:id="@+id/frame_rate_text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="24dp"
android:background="#000000"
app:layout_constraintStart_toStartOf="@+id/gl_view"
app:layout_constraintTop_toTopOf="@+id/gl_view" />



</androidx.constraintlayout.widget.ConstraintLayout>

0 comments on commit 4308134

Please sign in to comment.