1<?xml version="1.0" encoding="utf-8"?><!-- 2 Copyright (C) 2023 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<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 17 xmlns:app="http://schemas.android.com/apk/res-auto" 18 android:layout_width="match_parent" 19 android:layout_height="wrap_content" 20 android:orientation="vertical" 21 android:paddingHorizontal="@dimen/spacing_banner" 22 android:paddingTop="@dimen/spacing_banner" 23 android:layout_marginHorizontal="@dimen/spacing_normal" 24 android:layout_marginBottom="@dimen/spacing_small" 25 android:paddingBottom="@dimen/spacing_small" 26 android:background="@drawable/banner_background"> 27 28 <LinearLayout 29 android:layout_width="match_parent" 30 android:layout_height="wrap_content" 31 android:orientation="horizontal"> 32 33 <ImageView 34 android:id="@+id/banner_icon" 35 android:layout_width="@dimen/icon_size" 36 android:layout_height="@dimen/icon_size" 37 app:tint="?android:attr/textColorPrimary" /> 38 39 <Space 40 android:layout_width="0dp" 41 android:layout_height="0dp" 42 android:layout_weight="1"/> 43 44 <ImageView 45 android:id="@+id/dismiss_button" 46 android:layout_width="wrap_content" 47 android:layout_height="wrap_content" 48 android:src="@drawable/ic_close" 49 android:visibility="gone" 50 app:tint="?android:attr/textColorPrimary" /> 51 52 53 </LinearLayout> 54 55 <TextView 56 android:id="@+id/banner_title" 57 android:layout_width="wrap_content" 58 android:layout_height="wrap_content" 59 android:textAppearance="?attr/textAppearanceItem" 60 android:paddingVertical="@dimen/spacing_small"/> 61 62 <TextView 63 android:id="@+id/banner_message" 64 android:layout_width="wrap_content" 65 android:layout_height="wrap_content" 66 android:textAppearance="?attr/textAppearanceSummary"/> 67 68 <LinearLayout 69 android:layout_width="match_parent" 70 android:layout_height="wrap_content" 71 android:layout_gravity="end" 72 android:orientation="horizontal"> 73 74 <Space 75 android:layout_width="0dp" 76 android:layout_height="0dp" 77 android:layout_weight="1"/> 78 79 <Button 80 android:id="@+id/banner_secondary_button" 81 android:paddingVertical="@dimen/spacing_small" 82 android:paddingHorizontal="@dimen/spacing_normal" 83 android:layout_width="wrap_content" 84 android:layout_height="wrap_content" 85 android:layout_gravity="end" 86 style="@style/Widget.HealthConnect.Button.Borderless" 87 android:textColor="?android:attr/textColorPrimary" 88 android:visibility="gone" 89 /> 90 <Button 91 android:id="@+id/banner_primary_button" 92 android:paddingVertical="@dimen/spacing_small" 93 android:paddingHorizontal="@dimen/spacing_normal" 94 android:layout_width="wrap_content" 95 android:layout_height="wrap_content" 96 android:layout_gravity="end" 97 style="@style/Widget.HealthConnect.Button.Borderless" 98 android:textColor="?android:attr/textColorPrimary" 99 android:visibility="gone" 100 /> 101 102 </LinearLayout> 103 104</LinearLayout>