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:id="@+id/root"
21    android:layout_width="match_parent"
22    android:layout_height="match_parent">
23
24    <!-- When not in touch mode, if we clear focus in current window, Android will re-focus the
25         first focusable view in the window automatically. Adding a FocusParkingView to the window
26         can fix this issue, because it can take focus, and it is transparent and its default focus
27         highlight is disabled, so it's invisible to the user no matter whether it's focused or not.
28         -->
29    <com.android.car.ui.FocusParkingView
30        android:layout_width="wrap_content"
31        android:layout_height="wrap_content"/>
32
33    <LinearLayout
34        android:id="@+id/header"
35        android:layout_width="wrap_content"
36        android:layout_height="wrap_content"
37        android:layout_centerHorizontal="true"
38        android:layout_marginBottom="10dp"
39        android:orientation="horizontal">
40        <TextView
41            android:id="@+id/user_id"
42            android:layout_width="wrap_content"
43            android:layout_height="match_parent"
44            android:textSize="30sp"
45            android:padding="15dp"
46            android:visibility="gone"/>
47        <Button
48            android:id="@+id/menu_button"
49            android:layout_width="wrap_content"
50            android:layout_height="match_parent"
51            android:text="Hide KitchenSink Menu"
52            android:textSize="30sp"
53            android:padding="15dp"/>
54        <TextView
55            android:id="@+id/display_id"
56            android:layout_width="wrap_content"
57            android:layout_height="match_parent"
58            android:textSize="30sp"
59            android:padding="15dp"
60            android:visibility="gone"/>
61        <Button
62            android:id="@+id/finish_button"
63            android:layout_width="wrap_content"
64            android:layout_height="match_parent"
65            android:text="Finish"
66            android:textSize="30sp"
67            android:padding="15dp"/>
68        <Button
69            android:id="@+id/home_button"
70            android:layout_width="wrap_content"
71            android:layout_height="match_parent"
72            android:text="Home"
73            android:textSize="30sp"
74            android:padding="15dp"/>
75
76        <!-- [b/285426278] Button to display the new version of Kitchen Sink-->
77        <Button
78            android:id="@+id/new_version_button"
79            android:layout_width="wrap_content"
80            android:layout_height="match_parent"
81            android:text="beta"
82            android:textSize="30sp"
83            android:padding="15dp"/>
84    </LinearLayout>
85
86    <FrameLayout
87        android:id="@+id/kitchen_content"
88        android:layout_alignParentStart="true"
89        android:layout_width="match_parent"
90        android:layout_height="match_parent"
91        android:layout_below="@id/header"
92        android:visibility="gone"/>
93
94    <androidx.recyclerview.widget.RecyclerView
95        android:id="@+id/menu"
96        android:layout_below="@id/header"
97        android:layout_alignParentStart="true"
98        android:layout_width="match_parent"
99        android:layout_height="match_parent"/>
100</RelativeLayout>