• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2011 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:paddingTop="15dip"
25    android:paddingBottom="15dip"
26    android:orientation="horizontal">
27
28    <LinearLayout
29        android:layout_width="0dp"
30        android:layout_height="wrap_content"
31        android:layout_weight="1"
32        android:orientation="vertical">
33
34        <TextView
35            android:id="@+id/trusted_credential_subject_primary"
36            android:layout_width="wrap_content"
37            android:layout_height="wrap_content"
38            android:textAppearance="?android:attr/textAppearanceMedium"
39            android:textAlignment="viewStart"/>
40
41        <TextView
42            android:id="@+id/trusted_credential_subject_secondary"
43            android:layout_width="wrap_content"
44            android:layout_height="wrap_content"
45            android:textAppearance="?android:attr/textAppearanceSmall"
46            android:textColor="?android:attr/textColorSecondary"
47            android:textAlignment="viewStart"/>
48    </LinearLayout>
49
50    <!-- Switch is invisible and not gone so that the height is consistent between tabs -->
51    <Switch
52        android:id="@+id/trusted_credential_status"
53        android:layout_width="wrap_content"
54        android:layout_height="wrap_content"
55        android:visibility="invisible"
56        android:clickable="false"
57        android:focusable="false"
58        android:layout_weight="0" />
59
60</LinearLayout>
61