1<?xml version="1.0" encoding="utf-8"?> 2<!-- 3 ~ Copyright (C) 2020 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 xmlns:android="http://schemas.android.com/apk/res/android" 19 xmlns:app="http://schemas.android.com/apk/res-auto" 20 android:id="@+id/main_frame1" 21 android:layout_width="match_parent" 22 android:layout_height="match_parent" 23 android:transitionGroup="false"> 24 25 <androidx.cardview.widget.CardView 26 android:layout_width="wrap_content" 27 android:layout_height="wrap_content" 28 android:layout_alignParentTop="true" 29 android:layout_centerInParent="true" 30 android:layout_marginTop="@dimen/settings_info_fragment_image_margin_top" 31 app:cardCornerRadius="12dp"> 32 <ImageView 33 android:id="@+id/info_image" 34 android:layout_width="@dimen/settings_info_fragment_image_width" 35 android:layout_height="wrap_content" 36 android:adjustViewBounds="true" 37 android:scaleType="centerCrop"/> 38 </androidx.cardview.widget.CardView> 39 40 <RelativeLayout 41 android:layout_width="@dimen/settings_info_fragment_bottom_section_width" 42 android:layout_height="wrap_content" 43 android:layout_alignParentStart="true" 44 android:layout_alignParentBottom="true" 45 android:focusable="true" 46 android:importantForAccessibility="yes" 47 android:layout_marginBottom="@dimen/settings_info_fragment_bottom_section_margin_bottom" 48 android:paddingEnd="@dimen/settings_info_fragment_bottom_section_padding_end" > 49 50 <ImageView 51 android:id="@+id/info_title_icon" 52 android:layout_width="@dimen/settings_info_fragment_title_icon_width" 53 android:layout_height="@dimen/settings_info_fragment_title_icon_width" 54 android:layout_alignParentStart="true" 55 android:layout_alignParentTop="true" 56 android:focusable="false" 57 android:importantForAccessibility="no" 58 android:layout_marginEnd="@dimen/settings_info_fragment_title_icon_margin_end" 59 android:clickable="false" /> 60 61 <TextView 62 android:id="@+id/info_title" 63 android:layout_width="wrap_content" 64 android:layout_height="wrap_content" 65 android:layout_toEndOf="@id/info_title_icon" 66 android:layout_alignParentTop="true" 67 android:layout_alignWithParentIfMissing="true" 68 android:layout_marginBottom="@dimen/settings_info_fragment_title_margin_bottom" 69 android:focusable="false" 70 android:importantForAccessibility="yes" 71 android:maxLines="2" 72 android:ellipsize="end" 73 style="@style/TwoPanelInfoTitleTextStyle"/> 74 75 <TextView 76 android:id="@+id/info_status" 77 android:layout_width="wrap_content" 78 android:layout_height="wrap_content" 79 android:layout_toEndOf="@id/info_title" 80 android:layout_alignParentTop="true" 81 android:layout_marginStart="@dimen/settings_info_fragment_status_margin_start" 82 android:focusable="false" 83 android:importantForAccessibility="yes" 84 android:visibility="gone" 85 style="@style/TwoPanelInfoTitleTextStyle"/> 86 87 <TextView 88 android:id="@+id/info_summary" 89 android:layout_width="match_parent" 90 android:layout_height="wrap_content" 91 android:layout_toEndOf="@id/info_title_icon" 92 android:layout_below="@id/info_title" 93 android:layout_alignWithParentIfMissing="true" 94 android:focusable="false" 95 android:importantForAccessibility="yes" 96 android:maxLines="12" 97 android:ellipsize="end" 98 style="@style/TwoPanelInfoSummaryTextStyle"/> 99 100 </RelativeLayout> 101 102</RelativeLayout>