mirror of
https://github.com/skyline-emu/skyline.git
synced 2024-11-17 19:39:17 +01:00
48cf1263bc
The activity adds the following functionalities: * Lists installed drivers * Allows the user to install new drivers, or remove installed ones * Allows the user to select the driver that will be used by the emulator
35 lines
1.4 KiB
XML
35 lines
1.4 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<androidx.coordinatorlayout.widget.CoordinatorLayout 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_layout"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
tools:context=".preference.GpuDriverActivity">
|
|
|
|
<include
|
|
android:id="@+id/titlebar"
|
|
layout="@layout/titlebar" />
|
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
android:id="@+id/driver_list"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:clipToPadding="false"
|
|
android:padding="@dimen/grid_padding"
|
|
app:layout_behavior="@string/appbar_scrolling_view_behavior" />
|
|
|
|
<com.google.android.material.floatingactionbutton.FloatingActionButton
|
|
android:id="@+id/add_driver_button"
|
|
style="@style/Widget.MaterialComponents.FloatingActionButton"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="end|bottom"
|
|
android:layout_margin="16dp"
|
|
android:contentDescription="@string/add_gpu_driver"
|
|
android:src="@drawable/ic_add"
|
|
app:hoveredFocusedTranslationZ="0dp"
|
|
app:pressedTranslationZ="0dp" />
|
|
|
|
</androidx.coordinatorlayout.widget.CoordinatorLayout>
|