1<?xml version="1.0" encoding="UTF-8"?> 2<!-- 3 Copyright (C) 2016 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<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 19 xmlns:tools="http://schemas.android.com/tools" 20 style="@style/SudItemContainer.Verbose" 21 android:layout_width="match_parent" 22 android:layout_height="wrap_content" 23 android:baselineAligned="false" 24 android:clipToPadding="false" 25 android:orientation="horizontal" 26 tools:ignore="UnusedResources"> 27 <!-- Ignore UnusedResources: can be used by clients --> 28 29 <FrameLayout 30 android:id="@+id/sud_items_icon_container" 31 android:layout_width="@dimen/sud_items_icon_container_width" 32 android:layout_height="wrap_content" 33 android:layout_gravity="top" 34 android:gravity="start"> 35 36 <ImageView 37 android:id="@+id/sud_items_icon" 38 android:layout_width="wrap_content" 39 android:layout_height="wrap_content" 40 tools:ignore="ContentDescription" /> 41 42 </FrameLayout> 43 44 <LinearLayout 45 android:layout_width="0dp" 46 android:layout_height="wrap_content" 47 android:layout_marginBottom="@dimen/sud_items_verbose_padding_bottom_extra" 48 android:layout_weight="1" 49 android:orientation="vertical"> 50 51 <com.google.android.setupdesign.view.RichTextView 52 android:id="@+id/sud_items_title" 53 style="@style/SudItemTitle.Verbose" 54 android:layout_width="match_parent" 55 android:layout_height="wrap_content" 56 android:gravity="start" 57 android:labelFor="@+id/sud_items_switch" 58 android:textAlignment="viewStart" 59 tools:ignore="UnusedAttribute" /> 60 61 <com.google.android.setupdesign.view.RichTextView 62 android:id="@+id/sud_items_summary" 63 style="@style/SudItemSummary" 64 android:layout_width="match_parent" 65 android:layout_height="wrap_content" 66 android:gravity="start" 67 android:textAlignment="viewStart" 68 android:visibility="gone" 69 tools:ignore="UnusedAttribute" /> 70 71 </LinearLayout> 72 73 <androidx.appcompat.widget.SwitchCompat 74 android:id="@+id/sud_items_switch" 75 style="@style/SudSwitchStyle" 76 android:layout_width="wrap_content" 77 android:layout_height="match_parent" 78 android:layout_gravity="center_vertical" /> 79 80</LinearLayout> 81