blob: 51953e5daeedf1d557810e6782bd1c162c3e11ac [file] [log] [blame]
Mindy Pereira5eaa2b92011-12-13 11:37:05 -08001<?xml version="1.0" encoding="utf-8"?>
Vikram Aggarwal5e5ac742011-12-19 08:14:16 -08002<!--
3 Copyright (C) 2011 Google Inc.
4 Licensed to The Android Open Source Project.
Mindy Pereira5eaa2b92011-12-13 11:37:05 -08005
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-->
Jin Cao9d358a12014-07-24 12:15:38 -070018<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
19 style="@style/RecipientComposeFieldLayout">
Mindy Pereira5eaa2b92011-12-13 11:37:05 -080020
Jin Cao9d358a12014-07-24 12:15:38 -070021 <LinearLayout
22 android:layout_width="match_parent"
Mindy Pereira1a95a572012-01-05 12:21:29 -080023 android:layout_height="match_parent"
Jin Cao9d358a12014-07-24 12:15:38 -070024 style="@style/ComposeFieldContent">
Mindy Pereira5eaa2b92011-12-13 11:37:05 -080025
Jin Cao9d358a12014-07-24 12:15:38 -070026 <TextView
27 android:id="@+id/from_label"
28 android:contentDescription="@string/from"
29 android:text="@string/from"
30 style="@style/RecipientComposeHeading" />
Mindy Pereira5eaa2b92011-12-13 11:37:05 -080031
Jin Cao9d358a12014-07-24 12:15:38 -070032 <FrameLayout
33 android:layout_width="0dp"
Andrew Sappersteina01ddca2014-03-04 10:59:56 -080034 android:layout_height="match_parent"
Jin Cao9d358a12014-07-24 12:15:38 -070035 android:layout_weight="1">
36
37 <!-- From spinner -->
38 <LinearLayout
39 android:id="@+id/spinner_from_content"
40 android:layout_height="match_parent"
41 android:background="@android:color/transparent"
42 android:visibility="gone"
43 style="@style/RecipientComposeFieldLayout">
44
45 <com.android.mail.compose.FromAddressSpinner
46 android:id="@+id/from_picker"
47 android:layout_width="match_parent"
48 android:layout_height="match_parent"
49 android:background="@null" />
50
51 </LinearLayout>
52
53 <!-- static From -->
54 <LinearLayout
55 android:id="@+id/static_from_content"
56 android:layout_width="match_parent"
57 android:layout_height="match_parent">
58
59 <TextView
60 android:id="@+id/from_account_name"
61 android:layout_width="match_parent"
62 android:layout_height="match_parent"
63 android:background="@android:color/transparent"
64 android:ellipsize="end"
65 android:gravity="center_vertical"
66 android:singleLine="true"
67 android:textAlignment="viewStart"
68 android:textColor="@color/compose_user_text"
69 android:textSize="@dimen/compose_header_text_size" />
70
71 </LinearLayout>
72
73 </FrameLayout>
Mindy Pereira5eaa2b92011-12-13 11:37:05 -080074
75 </LinearLayout>
76
Jin Cao9d358a12014-07-24 12:15:38 -070077 <View style="@style/RecipientComposeFieldSpacer" />
78
79</LinearLayout>