• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?xml version="1.0" encoding="utf-8"?>
2<!--  Copyright 2024 The Android Open Source Project
3
4     Licensed under the Apache License, Version 2.0 (the "License");
5     you may not use this file except in compliance with the License.
6     You may obtain a copy of the License at
7
8          http://www.apache.org/licenses/LICENSE-2.0
9
10     Unless required by applicable law or agreed to in writing, software
11     distributed under the License is distributed on an "AS IS" BASIS,
12     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13     See the License for the specific language governing permissions and
14     limitations under the License.
15 -->
16<merge xmlns:android="http://schemas.android.com/apk/res/android"
17    xmlns:app="http://schemas.android.com/apk/res-auto"
18    xmlns:tools="http://schemas.android.com/tools"
19    android:layout_width="match_parent"
20    android:layout_height="match_parent"
21    tools:context=".DisplayActivity">
22    <View
23        android:id="@+id/background_touch_view"
24        android:layout_width="match_parent"
25        android:layout_height="match_parent"
26        />
27    <!-- the size should be match_parent -->
28    <SurfaceView
29        android:id="@+id/surface_view"
30        android:layout_width="match_parent"
31        android:layout_height="match_parent"
32        android:focusable="true"
33        android:focusableInTouchMode="true"
34        android:focusedByDefault="true"
35        android:defaultFocusHighlightEnabled="true">
36        <requestFocus />
37    </SurfaceView>
38    <!-- A cursor size in virtio-gpu spec is always 64x64 -->
39    <SurfaceView
40        android:id="@+id/cursor_surface_view"
41        android:layout_width="64px"
42        android:layout_height="64px">
43    </SurfaceView>
44
45</merge>