1<?xml version="1.0" encoding="utf-8"?> 2<!-- 3 ~ Copyright (C) 2022 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:id="@+id/vendor_header" 21 android:layout_width="wrap_content" 22 android:layout_height="wrap_content" 23 android:orientation="horizontal" 24 android:layout_gravity="center" 25 android:paddingTop="12dp" 26 android:paddingBottom="4dp" 27 android:paddingStart="24dp" 28 android:paddingEnd="24dp" 29 android:visibility="gone" > 30 31 <ImageView 32 android:id="@+id/vendor_header_image" 33 android:layout_width="48dp" 34 android:layout_height="48dp" 35 android:padding="12dp" 36 android:importantForAccessibility="no" /> 37 38 <TextView 39 android:id="@+id/vendor_header_name" 40 android:layout_width="wrap_content" 41 android:layout_height="wrap_content" 42 android:layout_marginTop="12dp" 43 android:textSize="14sp" 44 android:layout_toEndOf="@+id/vendor_header_image" 45 android:textColor="?android:attr/textColorSecondary"/> 46 47 <ImageButton 48 android:id="@+id/vendor_header_button" 49 android:src="@drawable/ic_info" 50 android:layout_width="48dp" 51 android:layout_height="48dp" 52 android:padding="12dp" 53 android:contentDescription="@string/vendor_header_button_description" 54 android:layout_alignParentEnd="true" 55 android:background="@android:color/transparent" /> 56 57</RelativeLayout>