Browse Source
Merge pull request #10726 from t895/emulation-nav-component
Merge pull request #10726 from t895/emulation-nav-component
android: Adapt EmulationActivity to navigation componentpull/15/merge
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
9 changed files with 86 additions and 74 deletions
-
1src/android/app/build.gradle.kts
-
1src/android/app/src/main/AndroidManifest.xml
-
64src/android/app/src/main/java/org/yuzu/yuzu_emu/activities/EmulationActivity.kt
-
5src/android/app/src/main/java/org/yuzu/yuzu_emu/adapters/GameAdapter.kt
-
32src/android/app/src/main/java/org/yuzu/yuzu_emu/fragments/EmulationFragment.kt
-
16src/android/app/src/main/res/layout/activity_emulation.xml
-
18src/android/app/src/main/res/navigation/emulation_navigation.xml
-
14src/android/app/src/main/res/navigation/home_navigation.xml
-
9src/android/build.gradle.kts
@ -1,13 +1,9 @@ |
|||||
<FrameLayout |
|
||||
|
<androidx.fragment.app.FragmentContainerView |
||||
xmlns:android="http://schemas.android.com/apk/res/android" |
xmlns:android="http://schemas.android.com/apk/res/android" |
||||
android:id="@+id/frame_content" |
|
||||
|
xmlns:app="http://schemas.android.com/apk/res-auto" |
||||
|
android:id="@+id/fragment_container" |
||||
|
android:name="androidx.navigation.fragment.NavHostFragment" |
||||
android:layout_width="match_parent" |
android:layout_width="match_parent" |
||||
android:layout_height="match_parent" |
android:layout_height="match_parent" |
||||
android:keepScreenOn="true"> |
|
||||
|
|
||||
<FrameLayout |
|
||||
android:id="@+id/frame_emulation_fragment" |
|
||||
android:layout_width="match_parent" |
|
||||
android:layout_height="match_parent" /> |
|
||||
|
|
||||
</FrameLayout> |
|
||||
|
android:keepScreenOn="true" |
||||
|
app:defaultNavHost="true" /> |
||||
@ -0,0 +1,18 @@ |
|||||
|
<?xml version="1.0" encoding="utf-8"?> |
||||
|
<navigation xmlns:android="http://schemas.android.com/apk/res/android" |
||||
|
xmlns:app="http://schemas.android.com/apk/res-auto" |
||||
|
xmlns:tools="http://schemas.android.com/tools" |
||||
|
android:id="@+id/emulation_navigation" |
||||
|
app:startDestination="@id/emulationFragment"> |
||||
|
|
||||
|
<fragment |
||||
|
android:id="@+id/emulationFragment" |
||||
|
android:name="org.yuzu.yuzu_emu.fragments.EmulationFragment" |
||||
|
android:label="fragment_emulation" |
||||
|
tools:layout="@layout/fragment_emulation" > |
||||
|
<argument |
||||
|
android:name="game" |
||||
|
app:argType="org.yuzu.yuzu_emu.model.Game" /> |
||||
|
</fragment> |
||||
|
|
||||
|
</navigation> |
||||
Write
Preview
Loading…
Cancel
Save
Reference in new issue