1 <?xml version="1.0" encoding="utf-8"?> 2 <!-- 3 Copyright (C) 2011 Google Inc. 4 Licensed to The Android Open Source Project. 5 6 Licensed under the Apache License, Version 2.0 (the "License"); 7 you may not use this file except in compliance with the License. 8 You may obtain a copy of the License at 9 10 http://www.apache.org/licenses/LICENSE-2.0 11 12 Unless required by applicable law or agreed to in writing, software 13 distributed under the License is distributed on an "AS IS" BASIS, 14 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 See the License for the specific language governing permissions and 16 limitations under the License. 17 --> 18 <android.support.v7.widget.GridLayout xmlns:android="http://schemas.android.com/apk/res/android" 19 xmlns:app="http://schemas.android.com/apk/res-auto" 20 android:id="@+id/details_expanded_content" 21 android:layout_width="match_parent" 22 android:layout_height="wrap_content" 23 android:background="?android:attr/selectableItemBackground" 24 app:columnCount="3" 25 app:rowCount="6" 26 style="@style/MessageDetailsHeaderStyle" > 27 28 <TextView 29 android:id="@+id/from_heading" 30 android:layout_width="wrap_content" 31 android:layout_height="wrap_content" 32 app:layout_column="0" 33 app:layout_row="0" 34 android:text="@string/from_heading" 35 android:visibility="gone" 36 style="@style/MessageHeaderDetailsHeadingStyle" /> 37 <TextView 38 android:id="@+id/from_details" 39 android:layout_width="0dp" 40 android:layout_height="wrap_content" 41 app:layout_gravity="fill_horizontal" 42 android:layout_marginBottom="4dp" 43 app:layout_column="1" 44 app:layout_row="0" 45 android:visibility="gone" 46 style="@style/MessageDetailsValueStyle" /> 47 <ImageView 48 android:id="@+id/details_expander" 49 android:layout_width="wrap_content" 50 android:layout_height="wrap_content" 51 app:layout_column="2" 52 app:layout_row="0" 53 android:contentDescription="@string/collapse_recipient_details" 54 android:src="@drawable/ic_menu_expander_maximized_holo_light" 55 style="@style/DetailsExpanderStyle" /> 56 <TextView 57 android:id="@+id/replyto_heading" 58 android:layout_width="wrap_content" 59 android:layout_height="wrap_content" 60 app:layout_column="0" 61 app:layout_row="1" 62 android:text="@string/replyto_heading" 63 android:visibility="gone" 64 style="@style/MessageHeaderDetailsHeadingStyle" /> 65 <TextView 66 android:id="@+id/replyto_details" 67 android:layout_width="0dp" 68 android:layout_height="wrap_content" 69 app:layout_gravity="fill_horizontal" 70 android:layout_marginBottom="4dp" 71 app:layout_column="1" 72 app:layout_row="1" 73 android:visibility="gone" 74 style="@style/MessageDetailsValueStyle" /> 75 <TextView 76 android:id="@+id/to_heading" 77 android:layout_width="wrap_content" 78 android:layout_height="wrap_content" 79 app:layout_column="0" 80 app:layout_row="2" 81 android:text="@string/to_heading" 82 android:visibility="gone" 83 style="@style/MessageHeaderDetailsHeadingStyle" /> 84 <TextView 85 android:id="@+id/to_details" 86 android:layout_width="0dp" 87 android:layout_height="wrap_content" 88 app:layout_gravity="fill_horizontal" 89 android:layout_marginBottom="4dp" 90 app:layout_column="1" 91 app:layout_row="2" 92 android:visibility="gone" 93 style="@style/MessageDetailsValueStyle" /> 94 <TextView 95 android:id="@+id/cc_heading" 96 android:layout_width="wrap_content" 97 android:layout_height="wrap_content" 98 app:layout_column="0" 99 app:layout_row="3" 100 android:text="@string/cc_heading" 101 android:visibility="gone" 102 style="@style/MessageHeaderDetailsHeadingStyle" /> 103 <TextView 104 android:id="@+id/cc_details" 105 android:layout_width="0dp" 106 android:layout_height="wrap_content" 107 app:layout_gravity="fill_horizontal" 108 android:layout_marginBottom="4dp" 109 app:layout_column="1" 110 app:layout_row="3" 111 android:visibility="gone" 112 style="@style/MessageDetailsValueStyle" /> 113 <TextView 114 android:id="@+id/bcc_heading" 115 android:layout_width="wrap_content" 116 android:layout_height="wrap_content" 117 app:layout_column="0" 118 app:layout_row="4" 119 android:text="@string/bcc_heading" 120 android:visibility="gone" 121 style="@style/MessageHeaderDetailsHeadingStyle" /> 122 <TextView 123 android:id="@+id/bcc_details" 124 android:layout_width="0dp" 125 android:layout_height="wrap_content" 126 app:layout_gravity="fill_horizontal" 127 android:layout_marginBottom="4dp" 128 app:layout_column="1" 129 app:layout_row="4" 130 android:visibility="gone" 131 style="@style/MessageDetailsValueStyle" /> 132 <TextView 133 android:id="@+id/date_heading" 134 android:layout_width="wrap_content" 135 android:layout_height="wrap_content" 136 app:layout_column="0" 137 app:layout_row="5" 138 android:text="@string/date_heading" 139 android:visibility="gone" 140 style="@style/MessageHeaderDetailsHeadingStyle" /> 141 <TextView 142 android:id="@+id/date_details" 143 android:layout_width="0dp" 144 android:layout_height="wrap_content" 145 app:layout_gravity="fill_horizontal" 146 android:layout_marginBottom="4dp" 147 app:layout_column="1" 148 app:layout_row="5" 149 android:visibility="gone" 150 style="@style/MessageDetailsValueStyle" /> 151 152 </android.support.v7.widget.GridLayout> 153