diff options
| author | 2024-01-25 20:48:58 -0500 | |
|---|---|---|
| committer | 2024-01-25 20:48:58 -0500 | |
| commit | ee540c712c9517319e61f1aebf23eebc88cb63c6 (patch) | |
| tree | 955ff9515757885f0a2d11ddf62694e1ff8f5533 /src | |
| parent | android: Add 600dp layout for GameInfoFragment (diff) | |
| download | yuzu-ee540c712c9517319e61f1aebf23eebc88cb63c6.tar.gz yuzu-ee540c712c9517319e61f1aebf23eebc88cb63c6.tar.xz yuzu-ee540c712c9517319e61f1aebf23eebc88cb63c6.zip | |
android: Allow controller to focus on toolbar menu items
Workaround for this
https://issuetracker.google.com/issues/256948272
Diffstat (limited to 'src')
11 files changed, 28 insertions, 6 deletions
diff --git a/src/android/app/src/main/res/layout-w600dp/fragment_about.xml b/src/android/app/src/main/res/layout-w600dp/fragment_about.xml index 655e49219..221428740 100644 --- a/src/android/app/src/main/res/layout-w600dp/fragment_about.xml +++ b/src/android/app/src/main/res/layout-w600dp/fragment_about.xml | |||
| @@ -11,12 +11,14 @@ | |||
| 11 | android:id="@+id/appbar_about" | 11 | android:id="@+id/appbar_about" |
| 12 | android:layout_width="match_parent" | 12 | android:layout_width="match_parent" |
| 13 | android:layout_height="wrap_content" | 13 | android:layout_height="wrap_content" |
| 14 | android:fitsSystemWindows="true"> | 14 | android:fitsSystemWindows="true" |
| 15 | android:touchscreenBlocksFocus="false"> | ||
| 15 | 16 | ||
| 16 | <com.google.android.material.appbar.MaterialToolbar | 17 | <com.google.android.material.appbar.MaterialToolbar |
| 17 | android:id="@+id/toolbar_about" | 18 | android:id="@+id/toolbar_about" |
| 18 | android:layout_width="match_parent" | 19 | android:layout_width="match_parent" |
| 19 | android:layout_height="?attr/actionBarSize" | 20 | android:layout_height="?attr/actionBarSize" |
| 21 | android:touchscreenBlocksFocus="false" | ||
| 20 | app:navigationIcon="@drawable/ic_back" | 22 | app:navigationIcon="@drawable/ic_back" |
| 21 | app:title="@string/about" /> | 23 | app:title="@string/about" /> |
| 22 | 24 | ||
diff --git a/src/android/app/src/main/res/layout/fragment_about.xml b/src/android/app/src/main/res/layout/fragment_about.xml index 38090fa50..1520bccee 100644 --- a/src/android/app/src/main/res/layout/fragment_about.xml +++ b/src/android/app/src/main/res/layout/fragment_about.xml | |||
| @@ -11,12 +11,14 @@ | |||
| 11 | android:id="@+id/appbar_about" | 11 | android:id="@+id/appbar_about" |
| 12 | android:layout_width="match_parent" | 12 | android:layout_width="match_parent" |
| 13 | android:layout_height="wrap_content" | 13 | android:layout_height="wrap_content" |
| 14 | android:fitsSystemWindows="true"> | 14 | android:fitsSystemWindows="true" |
| 15 | android:touchscreenBlocksFocus="false"> | ||
| 15 | 16 | ||
| 16 | <com.google.android.material.appbar.MaterialToolbar | 17 | <com.google.android.material.appbar.MaterialToolbar |
| 17 | android:id="@+id/toolbar_about" | 18 | android:id="@+id/toolbar_about" |
| 18 | android:layout_width="match_parent" | 19 | android:layout_width="match_parent" |
| 19 | android:layout_height="?attr/actionBarSize" | 20 | android:layout_height="?attr/actionBarSize" |
| 21 | android:touchscreenBlocksFocus="false" | ||
| 20 | app:title="@string/about" | 22 | app:title="@string/about" |
| 21 | app:navigationIcon="@drawable/ic_back" /> | 23 | app:navigationIcon="@drawable/ic_back" /> |
| 22 | 24 | ||
diff --git a/src/android/app/src/main/res/layout/fragment_addons.xml b/src/android/app/src/main/res/layout/fragment_addons.xml index a25e82766..d8d522dca 100644 --- a/src/android/app/src/main/res/layout/fragment_addons.xml +++ b/src/android/app/src/main/res/layout/fragment_addons.xml | |||
| @@ -11,6 +11,7 @@ | |||
| 11 | android:layout_width="match_parent" | 11 | android:layout_width="match_parent" |
| 12 | android:layout_height="wrap_content" | 12 | android:layout_height="wrap_content" |
| 13 | android:fitsSystemWindows="true" | 13 | android:fitsSystemWindows="true" |
| 14 | android:touchscreenBlocksFocus="false" | ||
| 14 | app:layout_constraintEnd_toEndOf="parent" | 15 | app:layout_constraintEnd_toEndOf="parent" |
| 15 | app:layout_constraintStart_toStartOf="parent" | 16 | app:layout_constraintStart_toStartOf="parent" |
| 16 | app:layout_constraintTop_toTopOf="parent"> | 17 | app:layout_constraintTop_toTopOf="parent"> |
| @@ -19,6 +20,7 @@ | |||
| 19 | android:id="@+id/toolbar_addons" | 20 | android:id="@+id/toolbar_addons" |
| 20 | android:layout_width="match_parent" | 21 | android:layout_width="match_parent" |
| 21 | android:layout_height="?attr/actionBarSize" | 22 | android:layout_height="?attr/actionBarSize" |
| 23 | android:touchscreenBlocksFocus="false" | ||
| 22 | app:navigationIcon="@drawable/ic_back" /> | 24 | app:navigationIcon="@drawable/ic_back" /> |
| 23 | 25 | ||
| 24 | </com.google.android.material.appbar.AppBarLayout> | 26 | </com.google.android.material.appbar.AppBarLayout> |
diff --git a/src/android/app/src/main/res/layout/fragment_applet_launcher.xml b/src/android/app/src/main/res/layout/fragment_applet_launcher.xml index fe8fae40f..95e6d6a6b 100644 --- a/src/android/app/src/main/res/layout/fragment_applet_launcher.xml +++ b/src/android/app/src/main/res/layout/fragment_applet_launcher.xml | |||
| @@ -10,12 +10,14 @@ | |||
| 10 | android:id="@+id/appbar_applets" | 10 | android:id="@+id/appbar_applets" |
| 11 | android:layout_width="match_parent" | 11 | android:layout_width="match_parent" |
| 12 | android:layout_height="wrap_content" | 12 | android:layout_height="wrap_content" |
| 13 | android:fitsSystemWindows="true"> | 13 | android:fitsSystemWindows="true" |
| 14 | android:touchscreenBlocksFocus="false"> | ||
| 14 | 15 | ||
| 15 | <com.google.android.material.appbar.MaterialToolbar | 16 | <com.google.android.material.appbar.MaterialToolbar |
| 16 | android:id="@+id/toolbar_applets" | 17 | android:id="@+id/toolbar_applets" |
| 17 | android:layout_width="match_parent" | 18 | android:layout_width="match_parent" |
| 18 | android:layout_height="?attr/actionBarSize" | 19 | android:layout_height="?attr/actionBarSize" |
| 20 | android:touchscreenBlocksFocus="false" | ||
| 19 | app:navigationIcon="@drawable/ic_back" | 21 | app:navigationIcon="@drawable/ic_back" |
| 20 | app:title="@string/applets" /> | 22 | app:title="@string/applets" /> |
| 21 | 23 | ||
diff --git a/src/android/app/src/main/res/layout/fragment_driver_manager.xml b/src/android/app/src/main/res/layout/fragment_driver_manager.xml index 6cea2d164..56d8e6bb8 100644 --- a/src/android/app/src/main/res/layout/fragment_driver_manager.xml +++ b/src/android/app/src/main/res/layout/fragment_driver_manager.xml | |||
| @@ -15,12 +15,14 @@ | |||
| 15 | android:layout_width="match_parent" | 15 | android:layout_width="match_parent" |
| 16 | android:layout_height="wrap_content" | 16 | android:layout_height="wrap_content" |
| 17 | android:fitsSystemWindows="true" | 17 | android:fitsSystemWindows="true" |
| 18 | android:touchscreenBlocksFocus="false" | ||
| 18 | app:liftOnScrollTargetViewId="@id/list_drivers"> | 19 | app:liftOnScrollTargetViewId="@id/list_drivers"> |
| 19 | 20 | ||
| 20 | <com.google.android.material.appbar.MaterialToolbar | 21 | <com.google.android.material.appbar.MaterialToolbar |
| 21 | android:id="@+id/toolbar_drivers" | 22 | android:id="@+id/toolbar_drivers" |
| 22 | android:layout_width="match_parent" | 23 | android:layout_width="match_parent" |
| 23 | android:layout_height="?attr/actionBarSize" | 24 | android:layout_height="?attr/actionBarSize" |
| 25 | android:touchscreenBlocksFocus="false" | ||
| 24 | app:navigationIcon="@drawable/ic_back" | 26 | app:navigationIcon="@drawable/ic_back" |
| 25 | app:title="@string/gpu_driver_manager" /> | 27 | app:title="@string/gpu_driver_manager" /> |
| 26 | 28 | ||
diff --git a/src/android/app/src/main/res/layout/fragment_early_access.xml b/src/android/app/src/main/res/layout/fragment_early_access.xml index 644b4dd45..24b130543 100644 --- a/src/android/app/src/main/res/layout/fragment_early_access.xml +++ b/src/android/app/src/main/res/layout/fragment_early_access.xml | |||
| @@ -11,12 +11,14 @@ | |||
| 11 | android:id="@+id/appbar_ea" | 11 | android:id="@+id/appbar_ea" |
| 12 | android:layout_width="match_parent" | 12 | android:layout_width="match_parent" |
| 13 | android:layout_height="wrap_content" | 13 | android:layout_height="wrap_content" |
| 14 | android:fitsSystemWindows="true"> | 14 | android:fitsSystemWindows="true" |
| 15 | android:touchscreenBlocksFocus="false"> | ||
| 15 | 16 | ||
| 16 | <com.google.android.material.appbar.MaterialToolbar | 17 | <com.google.android.material.appbar.MaterialToolbar |
| 17 | android:id="@+id/toolbar_about" | 18 | android:id="@+id/toolbar_about" |
| 18 | android:layout_width="match_parent" | 19 | android:layout_width="match_parent" |
| 19 | android:layout_height="?attr/actionBarSize" | 20 | android:layout_height="?attr/actionBarSize" |
| 21 | android:touchscreenBlocksFocus="false" | ||
| 20 | app:navigationIcon="@drawable/ic_back" | 22 | app:navigationIcon="@drawable/ic_back" |
| 21 | app:title="@string/early_access" /> | 23 | app:title="@string/early_access" /> |
| 22 | 24 | ||
diff --git a/src/android/app/src/main/res/layout/fragment_folders.xml b/src/android/app/src/main/res/layout/fragment_folders.xml index 74f2f3754..d7c4c7cb0 100644 --- a/src/android/app/src/main/res/layout/fragment_folders.xml +++ b/src/android/app/src/main/res/layout/fragment_folders.xml | |||
| @@ -15,12 +15,14 @@ | |||
| 15 | android:layout_width="match_parent" | 15 | android:layout_width="match_parent" |
| 16 | android:layout_height="wrap_content" | 16 | android:layout_height="wrap_content" |
| 17 | android:fitsSystemWindows="true" | 17 | android:fitsSystemWindows="true" |
| 18 | android:touchscreenBlocksFocus="false" | ||
| 18 | app:liftOnScrollTargetViewId="@id/list_folders"> | 19 | app:liftOnScrollTargetViewId="@id/list_folders"> |
| 19 | 20 | ||
| 20 | <com.google.android.material.appbar.MaterialToolbar | 21 | <com.google.android.material.appbar.MaterialToolbar |
| 21 | android:id="@+id/toolbar_folders" | 22 | android:id="@+id/toolbar_folders" |
| 22 | android:layout_width="match_parent" | 23 | android:layout_width="match_parent" |
| 23 | android:layout_height="?attr/actionBarSize" | 24 | android:layout_height="?attr/actionBarSize" |
| 25 | android:touchscreenBlocksFocus="false" | ||
| 24 | app:navigationIcon="@drawable/ic_back" | 26 | app:navigationIcon="@drawable/ic_back" |
| 25 | app:title="@string/game_folders" /> | 27 | app:title="@string/game_folders" /> |
| 26 | 28 | ||
diff --git a/src/android/app/src/main/res/layout/fragment_game_info.xml b/src/android/app/src/main/res/layout/fragment_game_info.xml index 53af15787..7daca72df 100644 --- a/src/android/app/src/main/res/layout/fragment_game_info.xml +++ b/src/android/app/src/main/res/layout/fragment_game_info.xml | |||
| @@ -11,12 +11,14 @@ | |||
| 11 | android:id="@+id/appbar_info" | 11 | android:id="@+id/appbar_info" |
| 12 | android:layout_width="match_parent" | 12 | android:layout_width="match_parent" |
| 13 | android:layout_height="wrap_content" | 13 | android:layout_height="wrap_content" |
| 14 | android:touchscreenBlocksFocus="false" | ||
| 14 | android:fitsSystemWindows="true"> | 15 | android:fitsSystemWindows="true"> |
| 15 | 16 | ||
| 16 | <com.google.android.material.appbar.MaterialToolbar | 17 | <com.google.android.material.appbar.MaterialToolbar |
| 17 | android:id="@+id/toolbar_info" | 18 | android:id="@+id/toolbar_info" |
| 18 | android:layout_width="match_parent" | 19 | android:layout_width="match_parent" |
| 19 | android:layout_height="?attr/actionBarSize" | 20 | android:layout_height="?attr/actionBarSize" |
| 21 | android:touchscreenBlocksFocus="false" | ||
| 20 | app:navigationIcon="@drawable/ic_back" /> | 22 | app:navigationIcon="@drawable/ic_back" /> |
| 21 | 23 | ||
| 22 | </com.google.android.material.appbar.AppBarLayout> | 24 | </com.google.android.material.appbar.AppBarLayout> |
diff --git a/src/android/app/src/main/res/layout/fragment_installables.xml b/src/android/app/src/main/res/layout/fragment_installables.xml index 3a4df81a6..47ef3869f 100644 --- a/src/android/app/src/main/res/layout/fragment_installables.xml +++ b/src/android/app/src/main/res/layout/fragment_installables.xml | |||
| @@ -10,12 +10,14 @@ | |||
| 10 | android:id="@+id/appbar_installables" | 10 | android:id="@+id/appbar_installables" |
| 11 | android:layout_width="match_parent" | 11 | android:layout_width="match_parent" |
| 12 | android:layout_height="wrap_content" | 12 | android:layout_height="wrap_content" |
| 13 | android:fitsSystemWindows="true"> | 13 | android:fitsSystemWindows="true" |
| 14 | android:touchscreenBlocksFocus="false"> | ||
| 14 | 15 | ||
| 15 | <com.google.android.material.appbar.MaterialToolbar | 16 | <com.google.android.material.appbar.MaterialToolbar |
| 16 | android:id="@+id/toolbar_installables" | 17 | android:id="@+id/toolbar_installables" |
| 17 | android:layout_width="match_parent" | 18 | android:layout_width="match_parent" |
| 18 | android:layout_height="?attr/actionBarSize" | 19 | android:layout_height="?attr/actionBarSize" |
| 20 | android:touchscreenBlocksFocus="false" | ||
| 19 | app:title="@string/manage_yuzu_data" | 21 | app:title="@string/manage_yuzu_data" |
| 20 | app:navigationIcon="@drawable/ic_back" /> | 22 | app:navigationIcon="@drawable/ic_back" /> |
| 21 | 23 | ||
diff --git a/src/android/app/src/main/res/layout/fragment_licenses.xml b/src/android/app/src/main/res/layout/fragment_licenses.xml index 6b31ff5b4..59d68b112 100644 --- a/src/android/app/src/main/res/layout/fragment_licenses.xml +++ b/src/android/app/src/main/res/layout/fragment_licenses.xml | |||
| @@ -10,12 +10,14 @@ | |||
| 10 | android:id="@+id/appbar_licenses" | 10 | android:id="@+id/appbar_licenses" |
| 11 | android:layout_width="match_parent" | 11 | android:layout_width="match_parent" |
| 12 | android:layout_height="wrap_content" | 12 | android:layout_height="wrap_content" |
| 13 | android:fitsSystemWindows="true"> | 13 | android:fitsSystemWindows="true" |
| 14 | android:touchscreenBlocksFocus="false"> | ||
| 14 | 15 | ||
| 15 | <com.google.android.material.appbar.MaterialToolbar | 16 | <com.google.android.material.appbar.MaterialToolbar |
| 16 | android:id="@+id/toolbar_licenses" | 17 | android:id="@+id/toolbar_licenses" |
| 17 | android:layout_width="match_parent" | 18 | android:layout_width="match_parent" |
| 18 | android:layout_height="?attr/actionBarSize" | 19 | android:layout_height="?attr/actionBarSize" |
| 20 | android:touchscreenBlocksFocus="false" | ||
| 19 | app:title="@string/licenses" | 21 | app:title="@string/licenses" |
| 20 | app:navigationIcon="@drawable/ic_back" /> | 22 | app:navigationIcon="@drawable/ic_back" /> |
| 21 | 23 | ||
diff --git a/src/android/app/src/main/res/layout/fragment_settings.xml b/src/android/app/src/main/res/layout/fragment_settings.xml index ebedbf1ec..110c70eef 100644 --- a/src/android/app/src/main/res/layout/fragment_settings.xml +++ b/src/android/app/src/main/res/layout/fragment_settings.xml | |||
| @@ -11,6 +11,7 @@ | |||
| 11 | android:layout_width="match_parent" | 11 | android:layout_width="match_parent" |
| 12 | android:layout_height="wrap_content" | 12 | android:layout_height="wrap_content" |
| 13 | android:fitsSystemWindows="true" | 13 | android:fitsSystemWindows="true" |
| 14 | android:touchscreenBlocksFocus="false" | ||
| 14 | app:elevation="0dp"> | 15 | app:elevation="0dp"> |
| 15 | 16 | ||
| 16 | <com.google.android.material.appbar.CollapsingToolbarLayout | 17 | <com.google.android.material.appbar.CollapsingToolbarLayout |
| @@ -24,6 +25,7 @@ | |||
| 24 | android:id="@+id/toolbar_settings" | 25 | android:id="@+id/toolbar_settings" |
| 25 | android:layout_width="match_parent" | 26 | android:layout_width="match_parent" |
| 26 | android:layout_height="?attr/actionBarSize" | 27 | android:layout_height="?attr/actionBarSize" |
| 28 | android:touchscreenBlocksFocus="false" | ||
| 27 | app:layout_collapseMode="pin" | 29 | app:layout_collapseMode="pin" |
| 28 | app:navigationIcon="@drawable/ic_back" /> | 30 | app:navigationIcon="@drawable/ic_back" /> |
| 29 | 31 | ||