• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2017 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
17<!-- We use this container to place kitchen app fragments. It insets the fragment contents -->
18<RelativeLayout
19    xmlns:android="http://schemas.android.com/apk/res/android"
20    android:layout_width="match_parent"
21    android:layout_height="match_parent">
22
23    <!-- When not in touch mode, if we clear focus in current window, Android will re-focus the
24         first focusable view in the window automatically. Adding a FocusParkingView to the window
25         can fix this issue, because it can take focus, and it is transparent and its default focus
26         highlight is disabled, so it's invisible to the user no matter whether it's focused or not.
27         -->
28    <com.android.car.ui.FocusParkingView
29        android:layout_width="wrap_content"
30        android:layout_height="wrap_content"/>
31
32    <Button
33        android:id="@+id/menu_button"
34        android:layout_width="wrap_content"
35        android:layout_height="wrap_content"
36        android:layout_centerHorizontal="true"
37        android:layout_marginBottom="10dp"
38        android:text="Hide KitchenSink Menu"
39        android:textSize="30sp"
40        android:padding="15dp"/>
41
42    <FrameLayout
43        android:id="@+id/kitchen_content"
44        android:layout_alignParentStart="true"
45        android:layout_width="match_parent"
46        android:layout_height="match_parent"
47        android:layout_below="@id/menu_button"
48        android:visibility="gone"/>
49
50    <androidx.recyclerview.widget.RecyclerView
51        android:id="@+id/menu"
52        android:layout_below="@id/menu_button"
53        android:layout_alignParentStart="true"
54        android:layout_width="match_parent"
55        android:layout_height="match_parent"/>
56</RelativeLayout>