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 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 19 style="@style/RecipientComposeFieldLayout"> 20 21 <LinearLayout 22 android:layout_width="match_parent" 23 android:layout_height="wrap_content" 24 android:paddingRight="0dp" 25 style="@style/ComposeFieldContent"> 26 27 <TextView 28 android:id="@+id/from_label" 29 android:contentDescription="@string/from" 30 android:text="@string/from" 31 style="@style/ComposeHeading" /> 32 33 <FrameLayout 34 android:layout_width="0dp" 35 android:layout_height="wrap_content" 36 android:layout_gravity="center_vertical" 37 android:layout_weight="1"> 38 39 <!-- From spinner --> 40 <LinearLayout 41 android:id="@+id/spinner_from_content" 42 android:background="@android:color/transparent" 43 android:visibility="gone" 44 style="@style/RecipientComposeFieldLayout"> 45 46 <com.android.mail.compose.FromAddressSpinner 47 android:id="@+id/from_picker" 48 android:layout_width="match_parent" 49 android:layout_height="match_parent" 50 android:background="@null" /> 51 52 </LinearLayout> 53 54 <!-- static From --> 55 <LinearLayout 56 android:id="@+id/static_from_content" 57 android:layout_width="match_parent" 58 android:layout_height="wrap_content"> 59 60 <TextView 61 android:id="@+id/from_account_name" 62 android:layout_width="match_parent" 63 android:layout_height="wrap_content" 64 android:background="@android:color/transparent" 65 android:textAlignment="viewStart" 66 style="@style/ComposeFromTextViewStyle" /> 67 68 </LinearLayout> 69 70 </FrameLayout> 71 72 </LinearLayout> 73 74 <View style="@style/DefaultDividerStyle" /> 75 76 </LinearLayout> 77