aboutsummaryrefslogtreecommitdiff
path: root/res/layout/input_banner_v2.xml
blob: 8f897827addd4bb5ffe1715bbb2fbf10ec0bb142 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
<?xml version="1.0" encoding="utf-8"?>
<!--
  ~ Copyright (C) 2023 The Android Open Source Project
  ~
  ~ Licensed under the Apache License, Version 2.0 (the "License");
  ~ you may not use this file except in compliance with the License.
  ~ You may obtain a copy of the License at
  ~
  ~      http://www.apache.org/licenses/LICENSE-2.0
  ~
  ~ Unless required by applicable law or agreed to in writing, software
  ~ distributed under the License is distributed on an "AS IS" BASIS,
  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  ~ See the License for the specific language governing permissions and
  ~ limitations under the License.
  -->

<!--  All info banners have the same id for use by TvTransitionManager. -->
<com.android.tv.ui.InputBannerViewV2 xmlns:android="http://schemas.android.com/apk/res/android"
    android:id="@+id/scene_transition_common"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_gravity="start|top"
    android:layout_marginStart="24dp"
    android:layout_marginTop="24dp"
    android:background="@drawable/input_banner_v2_background"
    android:maxWidth="@dimen/input_banner_item_label_max_width"
    android:minWidth="76dp"
    android:minHeight="39dp"
    android:orientation="vertical"
    android:elevation="8dp"
    android:focusable="false"
    android:paddingStart="20dp"
    android:paddingTop="16dp"
    android:paddingEnd="20dp"
    android:paddingBottom="16dp">

    <TextView
        android:id="@+id/input_info"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_gravity="center_vertical"
        android:ellipsize="end"
        android:fontFamily="google-sans-text-medium"
        android:gravity="start"
        android:singleLine="true"
        android:text="@string/input_banner_v2_active_input"
        android:textColor="#CCD2E3FC"
        android:textSize="12sp" />

    <TextView
        android:id="@+id/input_label"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_gravity="center_vertical"
        android:layout_marginTop="2dp"
        android:ellipsize="end"
        android:fontFamily="google-sans-text-medium"
        android:gravity="start"
        android:singleLine="true"
        android:textColor="#E8F0FE"
        android:textSize="18sp" />

</com.android.tv.ui.InputBannerViewV2>