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<!-- All info banners have the same id for use by TvTransitionManager. --> 19<com.android.tv.ui.InputBannerViewV2 xmlns:android="http://schemas.android.com/apk/res/android" 20 android:id="@+id/scene_transition_common" 21 android:layout_width="wrap_content" 22 android:layout_height="wrap_content" 23 android:layout_gravity="start|top" 24 android:layout_marginStart="24dp" 25 android:layout_marginTop="24dp" 26 android:background="@drawable/input_banner_v2_background" 27 android:maxWidth="@dimen/input_banner_item_label_max_width" 28 android:minWidth="76dp" 29 android:minHeight="39dp" 30 android:orientation="vertical" 31 android:elevation="8dp" 32 android:focusable="false" 33 android:paddingStart="20dp" 34 android:paddingTop="16dp" 35 android:paddingEnd="20dp" 36 android:paddingBottom="16dp"> 37 38 <TextView 39 android:id="@+id/input_info" 40 android:layout_width="wrap_content" 41 android:layout_height="wrap_content" 42 android:layout_gravity="center_vertical" 43 android:ellipsize="end" 44 android:fontFamily="google-sans-text-medium" 45 android:gravity="start" 46 android:singleLine="true" 47 android:text="@string/input_banner_v2_active_input" 48 android:textColor="#CCD2E3FC" 49 android:textSize="12sp" /> 50 51 <TextView 52 android:id="@+id/input_label" 53 android:layout_width="wrap_content" 54 android:layout_height="wrap_content" 55 android:layout_gravity="center_vertical" 56 android:layout_marginTop="2dp" 57 android:ellipsize="end" 58 android:fontFamily="google-sans-text-medium" 59 android:gravity="start" 60 android:singleLine="true" 61 android:textColor="#E8F0FE" 62 android:textSize="18sp" /> 63 64</com.android.tv.ui.InputBannerViewV2> 65