blob: f33dcddefa2b22d895d4570f7b9c2464b9b9861f [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"
Jin Caoee2ea6a2014-07-28 11:56:51 -070023 android:layout_height="wrap_content"
Jin Caocc147932014-08-05 10:57:34 -070024 android:paddingRight="0dp"
Jin Cao9d358a12014-07-24 12:15:38 -070025 style="@style/ComposeFieldContent">
Mindy Pereira5eaa2b92011-12-13 11:37:05 -080026
Jin Cao9d358a12014-07-24 12:15:38 -070027 <TextView
28 android:id="@+id/from_label"
29 android:contentDescription="@string/from"
30 android:text="@string/from"
Jin Cao94bdc152014-07-29 16:47:09 -070031 style="@style/ComposeHeading" />
Mindy Pereira5eaa2b92011-12-13 11:37:05 -080032
Jin Cao9d358a12014-07-24 12:15:38 -070033 <FrameLayout
34 android:layout_width="0dp"
Jin Caocc147932014-08-05 10:57:34 -070035 android:layout_height="wrap_content"
36 android:layout_gravity="center_vertical"
Jin Cao9d358a12014-07-24 12:15:38 -070037 android:layout_weight="1">
38
39 <!-- From spinner -->
40 <LinearLayout
41 android:id="@+id/spinner_from_content"
Jin Cao9d358a12014-07-24 12:15:38 -070042 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"
Jin Caocc147932014-08-05 10:57:34 -070058 android:layout_height="wrap_content">
Jin Cao9d358a12014-07-24 12:15:38 -070059
60 <TextView
61 android:id="@+id/from_account_name"
62 android:layout_width="match_parent"
Jin Caocc147932014-08-05 10:57:34 -070063 android:layout_height="wrap_content"
Jin Cao9d358a12014-07-24 12:15:38 -070064 android:background="@android:color/transparent"
Jin Cao9d358a12014-07-24 12:15:38 -070065 android:textAlignment="viewStart"
Jin Cao8d33b8c2014-08-01 16:44:52 -070066 style="@style/ComposeFromTextViewStyle" />
Jin Cao9d358a12014-07-24 12:15:38 -070067
68 </LinearLayout>
69
70 </FrameLayout>
Mindy Pereira5eaa2b92011-12-13 11:37:05 -080071
72 </LinearLayout>
73
Jin Cao9d358a12014-07-24 12:15:38 -070074 <View style="@style/RecipientComposeFieldSpacer" />
75
76</LinearLayout>