• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?xml version="1.0" encoding="utf-8"?>
2<!--
3/*
4 * Copyright (C) 2008 Esmertec AG.
5 * Copyright (C) 2008 The Android Open Source Project
6 *
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
10 *
11 *      http://www.apache.org/licenses/LICENSE-2.0
12 *
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
18 */
19-->
20
21<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
22    android:layout_width="fill_parent"
23    android:layout_height="fill_parent"
24    android:orientation="vertical">
25
26    <com.android.internal.widget.ContactHeaderWidget
27        android:id="@+id/contact_header"
28        android:layout_width="fill_parent"
29        android:layout_height="wrap_content"/>
30
31    <LinearLayout
32        android:id="@+id/recipients_subject_linear"
33        android:layout_width="fill_parent"
34        android:layout_height="wrap_content"
35        android:paddingTop="5dip"
36        android:paddingBottom="5dip"
37        android:paddingLeft="5dip"
38        android:paddingRight="5dip"
39        android:background="@drawable/white_background"
40        android:orientation="vertical"
41        android:visibility="gone">
42
43        <ViewStub android:id="@+id/recipients_editor_stub"
44            android:layout="@layout/recipients_editor"
45            android:layout_width="fill_parent"
46            android:layout_height="wrap_content"
47        />
48
49        <EditText android:id="@+id/subject"
50            android:layout_width="fill_parent"
51            android:layout_height="wrap_content"
52            android:capitalize="sentences"
53            android:autoText="true"
54            android:singleLine="true"
55            android:maxLength="40"
56            android:hint="@string/subject_hint"
57            android:visibility="gone"/>
58    </LinearLayout>
59
60    <LinearLayout
61        android:layout_width="fill_parent"
62        android:layout_height="fill_parent"
63        android:orientation="vertical"
64        android:background="@drawable/white_background"
65        android:gravity="bottom">
66
67        <view class="com.android.mms.ui.MessageListView"
68            android:id="@+id/history"
69            android:layout_width="fill_parent"
70            android:layout_height="fill_parent"
71            android:layout_weight="1.0"
72            android:listSelector="@drawable/chat_history_selector"
73            android:divider="@android:drawable/divider_horizontal_bright"
74            android:drawSelectorOnTop="true"
75            android:transcriptMode="alwaysScroll"
76            android:scrollbarAlwaysDrawVerticalTrack="true"
77            android:scrollbarStyle="insideInset"
78            android:stackFromBottom="true"
79            android:visibility="gone"
80            android:fadingEdge="none"
81            android:layout_marginBottom="1dip"
82            android:cacheColorHint="@android:color/white"
83        />
84
85        <ScrollView
86            android:layout_width="fill_parent"
87            android:layout_height="wrap_content">
88
89            <LinearLayout
90                android:layout_width="fill_parent"
91                android:layout_height="fill_parent"
92                android:orientation="vertical">
93
94                <view class="com.android.mms.ui.AttachmentEditor"
95                    android:id="@+id/attachment_editor"
96                    android:layout_width="fill_parent"
97                    android:layout_height="wrap_content"
98                    android:orientation="vertical">
99
100                    <ViewStub android:id="@+id/image_attachment_view_portrait_stub"
101                        android:layout="@layout/image_attachment_view_portrait"
102                        android:layout_width="fill_parent"
103                        android:layout_height="wrap_content"/>
104
105                    <ViewStub android:id="@+id/video_attachment_view_portrait_stub"
106                        android:layout="@layout/video_attachment_view_portrait"
107                        android:layout_width="fill_parent"
108                        android:layout_height="wrap_content"/>
109
110                    <ViewStub android:id="@+id/audio_attachment_view_portrait_stub"
111                        android:layout="@layout/audio_attachment_view_portrait"
112                        android:layout_width="fill_parent"
113                        android:layout_height="wrap_content"/>
114
115                    <ViewStub android:id="@+id/slideshow_attachment_view_portrait_stub"
116                        android:layout="@layout/slideshow_attachment_view_portrait"
117                        android:layout_width="fill_parent"
118                        android:layout_height="wrap_content"/>
119
120                    <ViewStub android:id="@+id/image_attachment_view_landscape_stub"
121                        android:layout="@layout/image_attachment_view_landscape"
122                        android:layout_width="fill_parent"
123                        android:layout_height="wrap_content"/>
124
125                    <ViewStub android:id="@+id/video_attachment_view_landscape_stub"
126                        android:layout="@layout/video_attachment_view_landscape"
127                        android:layout_width="fill_parent"
128                        android:layout_height="wrap_content"/>
129
130                    <ViewStub android:id="@+id/audio_attachment_view_landscape_stub"
131                        android:layout="@layout/audio_attachment_view_landscape"
132                        android:layout_width="fill_parent"
133                        android:layout_height="wrap_content"/>
134
135                    <ViewStub android:id="@+id/slideshow_attachment_view_landscape_stub"
136                        android:layout="@layout/slideshow_attachment_view_landscape"
137                        android:layout_width="fill_parent"
138                        android:layout_height="wrap_content"/>
139                </view>
140
141                <LinearLayout
142                    android:id="@+id/bottom_panel"
143                    android:orientation="horizontal"
144                    android:layout_width="fill_parent"
145                    android:layout_height="wrap_content"
146                    android:paddingTop="5dip"
147                    android:paddingBottom="5dip"
148                    android:paddingLeft="5dip"
149                    android:paddingRight="5dip"
150                    android:background="@drawable/bottombar_landscape_565">
151
152                    <RelativeLayout
153                        android:id="@+id/editor_with_counter"
154                        android:layout_width="0dip"
155                        android:layout_height="wrap_content"
156                        android:layout_weight="1.0"
157                        android:addStatesFromChildren="true"
158                        android:background="@android:drawable/edit_text">
159
160                        <EditText
161                            android:id="@+id/embedded_text_editor"
162                            android:layout_width="fill_parent"
163                            android:layout_height="wrap_content"
164                            android:autoText="true"
165                            android:capitalize="sentences"
166                            android:nextFocusRight="@+id/send_button"
167                            android:hint="@string/type_to_compose_text_enter_to_send"
168                            android:maxLines="4"
169                            android:inputType="textShortMessage|textAutoCorrect|textCapSentences|textMultiLine"
170                            android:imeOptions="actionSend|flagNoEnterAction"
171                            android:background="@null"
172                            android:maxLength="1000"
173                        />
174
175                        <TextView
176                            android:id="@+id/text_counter"
177                            android:layout_width="wrap_content"
178                            android:layout_height="wrap_content"
179                            android:background="#88000000"
180                            android:textColor="#ffffffff"
181                            android:textSize="11sp"
182                            android:textStyle="bold"
183                            android:paddingLeft="3dip"
184                            android:paddingRight="3dip"
185                            android:layout_alignParentRight="true"
186                            android:layout_alignParentTop="true"
187                            android:visibility="gone"
188                        />
189                    </RelativeLayout>
190
191                    <Button android:id="@+id/send_button"
192                        android:layout_marginLeft="5dip"
193                        android:layout_width="wrap_content"
194                        android:layout_height="fill_parent"
195                        style="?android:attr/buttonStyle"
196                        android:layout_gravity="center_vertical"
197                        android:nextFocusLeft="@+id/embedded_text_editor"
198                        android:text="@string/send"
199                    />
200                </LinearLayout>
201            </LinearLayout>
202        </ScrollView>
203    </LinearLayout>
204</LinearLayout>
205