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:id="@+id/main_frame1" 22 android:layout_gravity="bottom" 23 android:importantForAccessibility="yes" 24 android:layout_width="@dimen/settings_info_fragment_bottom_section_width" 25 android:layout_height="wrap_content" 26 android:transitionGroup="false" 27 android:layout_marginBottom="@dimen/settings_info_fragment_bottom_section_margin_bottom" 28 android:paddingEnd="@dimen/settings_info_fragment_bottom_section_padding_end"> 29 30 <ImageView 31 android:id="@+id/info_title_icon" 32 android:layout_width="@dimen/settings_info_fragment_title_icon_width" 33 android:layout_height="@dimen/settings_info_fragment_title_icon_width" 34 android:tint="@color/info_title_text_color" 35 app:layout_constraintStart_toStartOf="parent" 36 app:layout_constraintTop_toTopOf="parent" 37 app:layout_constraintBottom_toBottomOf="@id/info_title_barrier" 38 android:focusable="false" 39 android:importantForAccessibility="no" 40 android:clickable="false" /> 41 42 <com.android.tv.twopanelsettings.SmoothScalingTextView 43 android:id="@+id/info_title" 44 android:layout_width="0dp" 45 android:layout_height="wrap_content" 46 android:layout_marginStart="@dimen/settings_info_fragment_title_icon_margin_end" 47 android:ellipsize="end" 48 android:focusable="false" 49 android:importantForAccessibility="yes" 50 android:maxLines="2" 51 app:layout_constraintEnd_toEndOf="parent" 52 app:layout_constraintStart_toEndOf="@id/info_title_icon" 53 app:layout_constraintTop_toTopOf="parent" 54 app:layout_constraintBottom_toBottomOf="@id/info_title_barrier" 55 style="@style/TwoPanelInfoTitleTextStyle" /> 56 57 <androidx.constraintlayout.widget.Barrier 58 android:id="@+id/info_title_barrier" 59 android:layout_width="wrap_content" 60 android:layout_height="wrap_content" 61 app:barrierDirection="bottom" 62 app:constraint_referenced_ids="info_title_icon,info_title" 63 /> 64 65 <com.android.tv.twopanelsettings.SmoothScalingTextView 66 android:id="@+id/info_summary" 67 android:layout_width="0dp" 68 android:layout_height="wrap_content" 69 android:layout_marginTop="@dimen/settings_info_fragment_title_margin_bottom" 70 android:ellipsize="end" 71 android:focusable="false" 72 android:importantForAccessibility="yes" 73 android:maxLines="12" 74 app:layout_constraintEnd_toEndOf="parent" 75 app:layout_constraintStart_toStartOf="@id/info_title" 76 app:layout_constraintTop_toBottomOf="@id/info_title_barrier" 77 app:layout_constraintBottom_toBottomOf="@id/eco_hint_barrier" 78 style="@style/TwoPanelInfoSummaryTextStyle" /> 79 80 <androidx.constraintlayout.widget.Barrier 81 android:id="@+id/eco_hint_barrier" 82 android:layout_width="wrap_content" 83 android:layout_height="wrap_content" 84 app:layout_constraintTop_toBottomOf="@id/info_summary" 85 app:barrierDirection="top" 86 app:constraint_referenced_ids="eco_hint,eco_hint_icon" 87 /> 88 89 <ImageView 90 android:id="@+id/eco_hint_icon" 91 android:layout_width="@dimen/settings_info_fragment_title_icon_width" 92 android:layout_height="@dimen/settings_info_fragment_title_icon_width" 93 android:layout_marginTop="@dimen/settings_eco_info_fragment_hint_margin_top" 94 android:clickable="false" 95 android:focusable="false" 96 android:importantForAccessibility="no" 97 android:tint="@color/eco_hint_color" 98 app:layout_constraintBottom_toBottomOf="parent" 99 app:layout_constraintStart_toStartOf="parent" 100 app:layout_constraintTop_toBottomOf="@id/eco_hint_barrier" /> 101 102 <com.android.tv.twopanelsettings.SmoothScalingTextView 103 android:id="@+id/eco_hint" 104 style="@style/EcoHintTextStyle" 105 android:layout_width="0dp" 106 android:layout_height="wrap_content" 107 android:layout_alignWithParentIfMissing="true" 108 android:layout_marginTop="@dimen/settings_eco_info_fragment_hint_margin_top" 109 android:ellipsize="end" 110 android:focusable="false" 111 android:importantForAccessibility="yes" 112 android:maxLines="12" 113 app:layout_constraintBottom_toBottomOf="parent" 114 app:layout_constraintEnd_toEndOf="parent" 115 app:layout_constraintStart_toStartOf="@id/info_title" 116 app:layout_constraintTop_toBottomOf="@id/eco_hint_barrier" /> 117 118</androidx.constraintlayout.widget.ConstraintLayout>