Android: Add dummy view to expand layout bounds

This commit is contained in:
Connor McLaughlin 2021-06-04 21:53:20 +10:00
parent 8cf4c4f211
commit 0c1ac4e9a6
4 changed files with 36 additions and 0 deletions

View file

@ -8,6 +8,15 @@
android:orientation="vertical"
android:clipChildren="false">
<View
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:translationZ="-10px"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<com.github.stenzek.duckstation.TouchscreenControllerButtonView
android:id="@+id/controller_button_r2"
android:layout_width="70dp"

View file

@ -8,6 +8,15 @@
android:orientation="vertical"
android:clipChildren="false">
<View
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:translationZ="-10px"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<com.github.stenzek.duckstation.TouchscreenControllerButtonView
android:id="@+id/controller_button_r2"
android:layout_width="70dp"

View file

@ -8,6 +8,15 @@
android:orientation="vertical"
android:clipChildren="false">
<View
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:translationZ="-10px"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<com.github.stenzek.duckstation.TouchscreenControllerButtonView
android:id="@+id/controller_button_r2"
android:layout_width="70dp"

View file

@ -8,6 +8,15 @@
android:orientation="vertical"
android:clipChildren="false">
<View
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:translationZ="-10px"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<com.github.stenzek.duckstation.TouchscreenControllerButtonView
android:id="@+id/controller_button_a"
android:layout_width="50dp"