1<?xml version="1.0" encoding="utf-8"?> 2<!-- Copyright (C) 2019 The Android Open Source Project 3 4 Licensed under the Apache License, Version 2.0 (the "License"); 5 you may not use this file except in compliance with the License. 6 You may obtain a copy of the License at 7 8 http://www.apache.org/licenses/LICENSE-2.0 9 10 Unless required by applicable law or agreed to in writing, software 11 distributed under the License is distributed on an "AS IS" BASIS, 12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 See the License for the specific language governing permissions and 14 limitations under the License. 15--> 16<LinearLayout 17 xmlns:android="http://schemas.android.com/apk/res/android" 18 android:layout_width="match_parent" 19 android:layout_height="wrap_content" 20 android:gravity="center_vertical" 21 android:background="?android:attr/selectableItemBackground" 22 android:paddingStart="?android:attr/listPreferredItemPaddingStart" 23 android:paddingEnd="?android:attr/listPreferredItemPaddingEnd" 24 android:descendantFocusability="blocksDescendants" 25 android:orientation="horizontal"> 26 27 <LinearLayout 28 android:layout_width="0dp" 29 android:layout_height="wrap_content" 30 android:layout_weight="1" 31 android:paddingTop="15dip" 32 android:paddingBottom="15dip" 33 android:orientation="vertical"> 34 35 <TextView 36 android:id="@+id/trusted_credential_subject_primary" 37 android:layout_width="wrap_content" 38 android:layout_height="wrap_content" 39 android:textAppearance="?android:attr/textAppearanceMedium" 40 android:textAlignment="viewStart"/> 41 42 <TextView 43 android:id="@+id/trusted_credential_subject_secondary" 44 android:layout_width="wrap_content" 45 android:layout_height="wrap_content" 46 android:textAppearance="?android:attr/textAppearanceSmall" 47 android:textColor="?android:attr/textColorSecondary" 48 android:textAlignment="viewStart"/> 49 </LinearLayout> 50 51 <!-- Switch is invisible and not gone so that the height is consistent between tabs --> 52 <Switch 53 android:id="@+id/trusted_credential_status" 54 android:layout_width="wrap_content" 55 android:layout_height="wrap_content" 56 android:visibility="invisible" 57 android:padding="8dp" 58 android:layout_weight="0" /> 59 60</LinearLayout> 61