1<?xml version="1.0" encoding="utf-8"?> 2<!-- 3 ~ Copyright (C) 2023 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<androidx.constraintlayout.widget.ConstraintLayout 19 xmlns:android="http://schemas.android.com/apk/res/android" 20 xmlns:app="http://schemas.android.com/apk/res-auto" 21 android:layout_width="match_parent" 22 android:layout_height="wrap_content" 23 android:background="@color/banner_background_color"> 24 <TextView 25 android:id="@+id/banner_second_button" 26 android:layout_marginEnd="56dp" 27 app:layout_constraintEnd_toEndOf="parent" 28 app:layout_constraintWidth_max="@dimen/banner_button_maximum_width" 29 app:layout_constraintTop_toTopOf="parent" 30 style="@style/BannerButton"/> 31 <TextView 32 android:background="@android:color/transparent" 33 android:id="@+id/banner_first_button" 34 android:layout_marginEnd="72dp" 35 app:layout_constraintEnd_toStartOf="@id/banner_second_button" 36 app:layout_constraintWidth_max="@dimen/banner_button_maximum_width" 37 app:layout_constraintTop_toTopOf="parent" 38 style="@style/BannerButton"/> 39 <TextView 40 android:id="@+id/banner_title" 41 android:layout_height="wrap_content" 42 android:paddingBottom="@dimen/banner_content_margin" 43 android:layout_marginEnd="24dp" 44 android:layout_marginStart="@dimen/banner_content_margin" 45 android:layout_marginTop="@dimen/banner_content_margin" 46 android:layout_width="0dp" 47 android:textColor="@color/banner_title_text_color" 48 app:layout_constraintEnd_toStartOf="@id/banner_first_button" 49 app:layout_constraintStart_toEndOf="@+id/banner_icon" 50 app:layout_constraintTop_toTopOf="parent"/> 51 52 <ImageView 53 android:id="@+id/banner_icon" 54 android:layout_height="@dimen/banner_image_view_size" 55 android:layout_marginStart="35dp" 56 android:layout_marginTop="@dimen/banner_content_margin" 57 android:layout_width="@dimen/banner_image_view_size" 58 app:layout_constraintEnd_toStartOf="@+id/banner_title" 59 app:layout_constraintStart_toStartOf="parent" 60 app:layout_constraintTop_toTopOf="parent" 61 app:srcCompat="@drawable/banner_warning_image"/> 62</androidx.constraintlayout.widget.ConstraintLayout>