• 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="match_parent"
23    android:layout_height="match_parent"
24    android:background="@drawable/white_background"
25    android:orientation="vertical">
26
27    <LinearLayout
28        android:id="@+id/recipients_subject_linear"
29        android:layout_width="match_parent"
30        android:layout_height="wrap_content"
31        android:paddingTop="5dip"
32        android:paddingBottom="5dip"
33        android:paddingLeft="5dip"
34        android:paddingRight="5dip"
35        android:orientation="vertical"
36        android:visibility="gone">
37
38        <ViewStub android:id="@+id/recipients_editor_stub"
39            android:layout="@layout/recipients_editor"
40            android:layout_width="match_parent"
41            android:layout_height="wrap_content"
42        />
43
44        <EditText android:id="@+id/subject"
45            android:layout_width="match_parent"
46            android:layout_height="wrap_content"
47            android:capitalize="sentences"
48            android:autoText="true"
49            android:singleLine="true"
50            android:maxLength="40"
51            android:hint="@string/subject_hint"
52            android:visibility="gone"/>
53    </LinearLayout>
54
55    <LinearLayout
56        android:layout_width="match_parent"
57        android:layout_height="match_parent"
58        android:orientation="vertical"
59        android:gravity="bottom">
60
61        <view class="com.android.mms.ui.MessageListView"
62            style="?android:attr/listViewWhiteStyle"
63            android:id="@+id/history"
64            android:layout_width="match_parent"
65            android:layout_height="0dip"
66            android:layout_weight="1.0"
67            android:listSelector="@drawable/chat_history_selector"
68            android:drawSelectorOnTop="true"
69            android:transcriptMode="alwaysScroll"
70            android:scrollbarAlwaysDrawVerticalTrack="true"
71            android:scrollbarStyle="insideInset"
72            android:stackFromBottom="true"
73            android:visibility="gone"
74            android:fadingEdge="none"
75            android:layout_marginBottom="1dip"
76            android:cacheColorHint="@android:color/white"
77        />
78
79        <LinearLayout
80            android:layout_width="match_parent"
81            android:layout_height="wrap_content"
82            android:orientation="vertical">
83
84            <ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
85                android:layout_weight="1.0"
86                android:layout_width="match_parent"
87                android:layout_height="0dip">
88
89              <view class="com.android.mms.ui.AttachmentEditor"
90                  android:id="@+id/attachment_editor"
91                  android:layout_width="match_parent"
92                  android:layout_height="wrap_content"
93                  android:orientation="vertical">
94
95                  <ViewStub android:id="@+id/image_attachment_view_portrait_stub"
96                      android:layout="@layout/image_attachment_view_portrait"
97                      android:layout_width="match_parent"
98                      android:layout_height="wrap_content"/>
99
100                  <ViewStub android:id="@+id/video_attachment_view_portrait_stub"
101                      android:layout="@layout/video_attachment_view_portrait"
102                      android:layout_width="match_parent"
103                      android:layout_height="wrap_content"/>
104
105                  <ViewStub android:id="@+id/audio_attachment_view_portrait_stub"
106                      android:layout="@layout/audio_attachment_view_portrait"
107                      android:layout_width="match_parent"
108                      android:layout_height="wrap_content"/>
109
110                  <ViewStub android:id="@+id/slideshow_attachment_view_portrait_stub"
111                      android:layout="@layout/slideshow_attachment_view_portrait"
112                      android:layout_width="match_parent"
113                      android:layout_height="wrap_content"/>
114
115                  <ViewStub android:id="@+id/image_attachment_view_landscape_stub"
116                      android:layout="@layout/image_attachment_view_landscape"
117                      android:layout_width="match_parent"
118                      android:layout_height="wrap_content"/>
119
120                  <ViewStub android:id="@+id/video_attachment_view_landscape_stub"
121                      android:layout="@layout/video_attachment_view_landscape"
122                      android:layout_width="match_parent"
123                      android:layout_height="wrap_content"/>
124
125                  <ViewStub android:id="@+id/audio_attachment_view_landscape_stub"
126                      android:layout="@layout/audio_attachment_view_landscape"
127                      android:layout_width="match_parent"
128                      android:layout_height="wrap_content"/>
129
130                  <ViewStub android:id="@+id/slideshow_attachment_view_landscape_stub"
131                      android:layout="@layout/slideshow_attachment_view_landscape"
132                      android:layout_width="match_parent"
133                      android:layout_height="wrap_content"/>
134              </view>
135            </ScrollView>
136
137            <LinearLayout
138                android:id="@+id/bottom_panel"
139                android:orientation="horizontal"
140                android:layout_width="match_parent"
141                android:layout_height="wrap_content"
142                android:paddingTop="5dip"
143                android:paddingBottom="5dip"
144                android:paddingLeft="5dip"
145                android:paddingRight="5dip"
146                android:background="@drawable/bottombar_landscape_565">
147
148                <EditText
149                    android:id="@+id/embedded_text_editor"
150                    android:layout_width="0dip"
151                    android:layout_height="wrap_content"
152                    android:layout_weight="1.0"
153                    android:autoText="true"
154                    android:capitalize="sentences"
155                    android:nextFocusRight="@+id/send_button"
156                    android:hint="@string/type_to_compose_text_enter_to_send"
157                    android:maxLines="3"
158                    android:inputType="textShortMessage|textAutoCorrect|textCapSentences|textMultiLine"
159                    android:imeOptions="actionSend|flagNoEnterAction"
160                    android:background="@android:drawable/edit_text"
161                />
162
163                <LinearLayout
164                    android:id="@+id/button_with_counter"
165                    android:orientation="vertical"
166                    android:layout_width="wrap_content"
167                    android:layout_height="match_parent" >
168
169                    <Button
170                        android:id="@+id/send_button"
171                        android:layout_marginLeft="5dip"
172                        android:layout_width="wrap_content"
173                        android:layout_height="0dip"
174                        android:layout_weight="1.0"
175                        style="?android:attr/buttonStyle"
176                        android:nextFocusLeft="@+id/embedded_text_editor"
177                        android:text="@string/send"
178                    />
179
180                    <TextView
181                        android:id="@+id/text_counter"
182                        android:layout_width="match_parent"
183                        android:layout_height="wrap_content"
184                        android:gravity="center_horizontal|bottom"
185                        android:textColor="#ffffffff"
186                        android:textSize="11sp"
187                        android:textStyle="bold"
188                        android:paddingLeft="3dip"
189                        android:paddingRight="3dip"
190                        android:paddingBottom="5dip"
191                        android:visibility="gone"
192                    />
193                </LinearLayout>
194            </LinearLayout>
195        </LinearLayout>
196    </LinearLayout>
197</LinearLayout>
198