committed by
bunnei
14 changed files with 208 additions and 93 deletions
-
31src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/ui/SettingsActivity.kt
-
46src/android/app/src/main/java/org/yuzu/yuzu_emu/fragments/HomeSettingsFragment.kt
-
63src/android/app/src/main/java/org/yuzu/yuzu_emu/fragments/SearchFragment.kt
-
32src/android/app/src/main/java/org/yuzu/yuzu_emu/ui/GamesFragment.kt
-
36src/android/app/src/main/java/org/yuzu/yuzu_emu/ui/main/MainActivity.kt
-
10src/android/app/src/main/java/org/yuzu/yuzu_emu/utils/InsetsHelper.kt
-
46src/android/app/src/main/res/layout-w600dp/activity_main.xml
-
2src/android/app/src/main/res/layout/activity_main.xml
-
1src/android/app/src/main/res/layout/fragment_home_settings.xml
-
7src/android/app/src/main/res/layout/fragment_search.xml
-
19src/android/app/src/main/res/menu-w600dp/menu_navigation.xml
-
5src/android/app/src/main/res/values-w600dp/dimens.xml
-
1src/android/app/src/main/res/values/dimens.xml
-
2src/android/app/src/main/res/values/themes.xml
@ -0,0 +1,46 @@ |
|||
<?xml version="1.0" encoding="utf-8"?> |
|||
<androidx.constraintlayout.widget.ConstraintLayout |
|||
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/coordinator_main" |
|||
android:layout_width="match_parent" |
|||
android:layout_height="match_parent"> |
|||
|
|||
<androidx.fragment.app.FragmentContainerView |
|||
android:id="@+id/fragment_container" |
|||
android:name="androidx.navigation.fragment.NavHostFragment" |
|||
android:layout_width="0dp" |
|||
android:layout_height="0dp" |
|||
app:defaultNavHost="true" |
|||
app:layout_constraintBottom_toBottomOf="parent" |
|||
app:layout_constraintEnd_toEndOf="parent" |
|||
app:layout_constraintStart_toStartOf="parent" |
|||
app:layout_constraintTop_toTopOf="parent" |
|||
app:navGraph="@navigation/home_navigation" |
|||
tools:layout="@layout/fragment_games" /> |
|||
|
|||
<com.google.android.material.navigationrail.NavigationRailView |
|||
android:id="@+id/navigation_view" |
|||
android:layout_width="wrap_content" |
|||
android:layout_height="match_parent" |
|||
android:visibility="invisible" |
|||
app:layout_constraintBottom_toBottomOf="parent" |
|||
app:layout_constraintStart_toStartOf="parent" |
|||
app:layout_constraintTop_toTopOf="parent" |
|||
app:labelVisibilityMode="selected" |
|||
app:menu="@menu/menu_navigation" |
|||
tools:visibility="visible" /> |
|||
|
|||
<View |
|||
android:id="@+id/status_bar_shade" |
|||
android:layout_width="0dp" |
|||
android:layout_height="1px" |
|||
android:background="@android:color/transparent" |
|||
android:clickable="false" |
|||
android:focusable="false" |
|||
app:layout_constraintTop_toTopOf="parent" |
|||
app:layout_constraintEnd_toEndOf="parent" |
|||
app:layout_constraintStart_toStartOf="parent" /> |
|||
|
|||
</androidx.constraintlayout.widget.ConstraintLayout> |
|||
@ -0,0 +1,19 @@ |
|||
<?xml version="1.0" encoding="utf-8"?> |
|||
<menu xmlns:android="http://schemas.android.com/apk/res/android"> |
|||
|
|||
<item |
|||
android:id="@+id/homeSettingsFragment" |
|||
android:icon="@drawable/ic_settings" |
|||
android:title="@string/home_settings" /> |
|||
|
|||
<item |
|||
android:id="@+id/searchFragment" |
|||
android:icon="@drawable/ic_search" |
|||
android:title="@string/home_search" /> |
|||
|
|||
<item |
|||
android:id="@+id/gamesFragment" |
|||
android:icon="@drawable/ic_controller" |
|||
android:title="@string/home_games" /> |
|||
|
|||
</menu> |
|||
@ -0,0 +1,5 @@ |
|||
<?xml version="1.0" encoding="utf-8"?> |
|||
<resources> |
|||
<dimen name="spacing_navigation">0dp</dimen> |
|||
<dimen name="spacing_navigation_rail">80dp</dimen> |
|||
</resources> |
|||
Write
Preview
Loading…
Cancel
Save
Reference in new issue