Vectras-VM-Android/app/src/main/res/layout/activity_main.xml
An Bui 9ae5548f52 3.4.7
- Added software and drivers.
- Fixed the issue of virtual machines not running with X11.
2025-12-20 12:53:05 +07:00

63 lines
No EOL
2.5 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<androidx.drawerlayout.widget.DrawerLayout 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/drawer_layout"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:keepScreenOn="true"
android:background="?attr/colorSurface"
tools:openDrawer="start"
tools:context=".main.MainActivity" >
<include
android:id="@+id/maincontent"
layout="@layout/activity_main_content"/>
<com.google.android.material.search.SearchView
android:id="@+id/searchview"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:hint="@string/search">
<LinearLayout
android:id="@+id/ln_searchempty"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="center"
android:orientation="vertical">
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/search_96px" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="8dp"
android:layout_marginRight="8dp"
android:layout_marginBottom="8dp"
android:gravity="center"
android:text="@string/no_matching_results_found" />
</LinearLayout>
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/rv_romstoresearch"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="?attr/colorSurfaceContainerHigh"
android:paddingVertical="8dp"
android:clipToPadding="false"/>
</com.google.android.material.search.SearchView>
<!--Place NavigationView here to avoid interaction errors affected by other objects and cause unwanted effects to other objects.-->
<com.google.android.material.navigation.NavigationView
android:id="@+id/nav_view"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_gravity="start"
app:headerLayout="@layout/nav_header_main"
app:menu="@menu/home_drawer_menu" />
</androidx.drawerlayout.widget.DrawerLayout>