Yan Zhu | 285718d | 2019-05-29 15:40:40 -0700 | [diff] [blame^] | 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <!-- Copyright (C) 2019 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 | <Button |
| 24 | android:id="@+id/menu_button" |
| 25 | android:layout_width="wrap_content" |
| 26 | android:layout_height="wrap_content" |
| 27 | android:layout_centerHorizontal="true" |
| 28 | android:layout_marginBottom="10dp" |
| 29 | android:background="@android:color/background_light" |
| 30 | android:text="Hide Test Menu" |
| 31 | android:textSize="30sp" |
| 32 | android:padding="15dp"/> |
| 33 | |
| 34 | <FrameLayout |
| 35 | android:id="@+id/menu_content" |
| 36 | android:layout_alignParentStart="true" |
| 37 | android:layout_width="match_parent" |
| 38 | android:layout_height="match_parent" |
| 39 | android:layout_below="@id/menu_button" |
| 40 | android:visibility="gone"/> |
| 41 | |
| 42 | <androidx.recyclerview.widget.RecyclerView |
| 43 | android:id="@+id/menu" |
| 44 | android:layout_below="@id/menu_button" |
| 45 | android:layout_alignParentStart="true" |
| 46 | android:layout_width="match_parent" |
| 47 | android:layout_height="match_parent"/> |
| 48 | </RelativeLayout> |