1<?xml version="1.0" encoding="utf-8"?> 2<!-- 3 ~ Copyright (C) 2020 The Android Open Source Project 4 ~ 5 ~ Licensed under the Apache License, Version 2.0 (the "License"); 6 ~ you may not use this file except in compliance with the License. 7 ~ You may obtain a copy of the License at 8 ~ 9 ~ http://www.apache.org/licenses/LICENSE-2.0 10 ~ 11 ~ Unless required by applicable law or agreed to in writing, software 12 ~ distributed under the License is distributed on an "AS IS" BASIS, 13 ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 ~ See the License for the specific language governing permissions and 15 ~ limitations under the License. 16 --> 17 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 <com.android.car.ui.FocusArea 24 android:layout_width="match_parent" 25 android:layout_height="wrap_content" 26 android:layout_alignParentTop="true"> 27 <TextView 28 android:layout_width="0dp" 29 android:layout_height="@dimen/button_height" 30 android:layout_weight="1" 31 android:gravity="center" 32 android:text="Under HUN"/> 33 <Button 34 android:id="@+id/add_notification_button1" 35 android:layout_width="0dp" 36 android:layout_height="@dimen/button_height" 37 android:layout_weight="1" 38 android:layout_margin="5dp" 39 android:background="@color/button_background_color" 40 android:text="Add Notification"/> 41 <Button 42 android:id="@+id/clear_notification_button1" 43 android:layout_width="0dp" 44 android:layout_height="@dimen/button_height" 45 android:layout_weight="1" 46 android:layout_margin="5dp" 47 android:background="@color/button_background_color" 48 android:text="Clear Notification"/> 49 </com.android.car.ui.FocusArea> 50 51 <com.android.car.ui.FocusArea 52 android:layout_width="match_parent" 53 android:layout_height="wrap_content" 54 android:layout_alignParentBottom="true"> 55 <TextView 56 android:layout_width="0dp" 57 android:layout_height="@dimen/button_height" 58 android:layout_weight="1" 59 android:gravity="center" 60 android:text="Not Under HUN"/> 61 <Button 62 android:id="@+id/add_notification_button2" 63 android:layout_width="0dp" 64 android:layout_height="@dimen/button_height" 65 android:layout_weight="1" 66 android:layout_margin="5dp" 67 android:background="@color/button_background_color" 68 android:text="Add Notification"/> 69 <Button 70 android:id="@+id/clear_notification_button2" 71 android:layout_width="0dp" 72 android:layout_height="@dimen/button_height" 73 android:layout_weight="1" 74 android:layout_margin="5dp" 75 android:background="@color/button_background_color" 76 android:text="Clear Notification"/> 77 </com.android.car.ui.FocusArea> 78 79</RelativeLayout> 80