Brian Carlstrom | f6f4e30 | 2011-06-26 16:05:21 -0700 | [diff] [blame] | 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" |
Tony Mak | fe0ce01 | 2016-05-31 20:51:01 +0100 | [diff] [blame] | 18 | android:layout_width="match_parent" |
Brian Carlstrom | f6f4e30 | 2011-06-26 16:05:21 -0700 | [diff] [blame] | 19 | android:layout_height="wrap_content" |
| 20 | android:gravity="center_vertical" |
Brian Carlstrom | f6f4e30 | 2011-06-26 16:05:21 -0700 | [diff] [blame] | 21 | android:background="?android:attr/selectableItemBackground" |
Victor Chang | 9583dce | 2016-04-14 22:51:38 +0100 | [diff] [blame] | 22 | android:paddingStart="?android:attr/listPreferredItemPaddingStart" |
| 23 | android:paddingEnd="?android:attr/listPreferredItemPaddingEnd" |
Robin Lee | bed8559 | 2016-09-01 18:35:00 +0100 | [diff] [blame] | 24 | android:descendantFocusability="blocksDescendants" |
Tony Mak | fe0ce01 | 2016-05-31 20:51:01 +0100 | [diff] [blame] | 25 | android:orientation="horizontal"> |
Fabrice Di Meglio | 21ddce6 | 2014-06-17 18:29:26 -0700 | [diff] [blame] | 26 | |
Tony Mak | fe0ce01 | 2016-05-31 20:51:01 +0100 | [diff] [blame] | 27 | <LinearLayout |
| 28 | android:layout_width="0dp" |
Brian Carlstrom | f6f4e30 | 2011-06-26 16:05:21 -0700 | [diff] [blame] | 29 | android:layout_height="wrap_content" |
Tony Mak | fe0ce01 | 2016-05-31 20:51:01 +0100 | [diff] [blame] | 30 | android:layout_weight="1" |
Robin Lee | bed8559 | 2016-09-01 18:35:00 +0100 | [diff] [blame] | 31 | android:paddingTop="15dip" |
| 32 | android:paddingBottom="15dip" |
Tony Mak | fe0ce01 | 2016-05-31 20:51:01 +0100 | [diff] [blame] | 33 | android:orientation="vertical"> |
Fabrice Di Meglio | 21ddce6 | 2014-06-17 18:29:26 -0700 | [diff] [blame] | 34 | |
Brian Carlstrom | 10cc989 | 2011-07-05 23:51:39 -0700 | [diff] [blame] | 35 | <TextView |
| 36 | android:id="@+id/trusted_credential_subject_primary" |
Tony Mak | fe0ce01 | 2016-05-31 20:51:01 +0100 | [diff] [blame] | 37 | android:layout_width="wrap_content" |
Brian Carlstrom | 10cc989 | 2011-07-05 23:51:39 -0700 | [diff] [blame] | 38 | android:layout_height="wrap_content" |
Tony Mak | fe0ce01 | 2016-05-31 20:51:01 +0100 | [diff] [blame] | 39 | android:textAppearance="?android:attr/textAppearanceMedium" |
| 40 | android:textAlignment="viewStart"/> |
Fabrice Di Meglio | 21ddce6 | 2014-06-17 18:29:26 -0700 | [diff] [blame] | 41 | |
Brian Carlstrom | 10cc989 | 2011-07-05 23:51:39 -0700 | [diff] [blame] | 42 | <TextView |
| 43 | android:id="@+id/trusted_credential_subject_secondary" |
Tony Mak | fe0ce01 | 2016-05-31 20:51:01 +0100 | [diff] [blame] | 44 | android:layout_width="wrap_content" |
Brian Carlstrom | 10cc989 | 2011-07-05 23:51:39 -0700 | [diff] [blame] | 45 | android:layout_height="wrap_content" |
Brian Carlstrom | 10cc989 | 2011-07-05 23:51:39 -0700 | [diff] [blame] | 46 | android:textAppearance="?android:attr/textAppearanceSmall" |
Tony Mak | fe0ce01 | 2016-05-31 20:51:01 +0100 | [diff] [blame] | 47 | android:textColor="?android:attr/textColorSecondary" |
| 48 | android:textAlignment="viewStart"/> |
| 49 | </LinearLayout> |
Fabrice Di Meglio | 21ddce6 | 2014-06-17 18:29:26 -0700 | [diff] [blame] | 50 | |
Fabrice Di Meglio | 44db45a | 2014-10-17 14:06:22 -0700 | [diff] [blame] | 51 | <!-- Switch is invisible and not gone so that the height is consistent between tabs --> |
| 52 | <Switch |
Brian Carlstrom | f6f4e30 | 2011-06-26 16:05:21 -0700 | [diff] [blame] | 53 | android:id="@+id/trusted_credential_status" |
| 54 | android:layout_width="wrap_content" |
| 55 | android:layout_height="wrap_content" |
| 56 | android:visibility="invisible" |
Robin Lee | bed8559 | 2016-09-01 18:35:00 +0100 | [diff] [blame] | 57 | android:padding="8dp" |
Fabrice Di Meglio | 21ddce6 | 2014-06-17 18:29:26 -0700 | [diff] [blame] | 58 | android:layout_weight="0" /> |
| 59 | |
Brian Carlstrom | f6f4e30 | 2011-06-26 16:05:21 -0700 | [diff] [blame] | 60 | </LinearLayout> |