• 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<com.android.mms.ui.BasicSlideEditorView
22    xmlns:android="http://schemas.android.com/apk/res/android"
23    android:id="@+id/slide_editor_view"
24    android:layout_width="match_parent"
25    android:layout_height="match_parent"
26    android:orientation="vertical">
27
28    <LinearLayout
29        android:layout_width="match_parent"
30        android:layout_height="wrap_content"
31        android:layout_weight="1"
32        android:orientation="horizontal"
33        android:background="@android:drawable/editbox_background" >
34
35        <LinearLayout
36            android:layout_width="0dip"
37            android:layout_height="match_parent"
38            android:layout_weight="1"
39            android:layout_marginTop="10dip"
40            android:layout_marginBottom="10dip"
41            android:layout_marginLeft="20dip"
42            android:layout_marginRight="20dip"
43            android:orientation="vertical" >
44
45            <ImageView android:id="@+id/image"
46                android:layout_width="match_parent"
47                android:layout_height="0dip"
48                android:layout_weight="1"
49                android:background="@android:drawable/picture_frame" />
50
51            <LinearLayout  android:id="@+id/audio"
52                android:layout_width="wrap_content"
53                android:layout_height="wrap_content"
54                android:visibility="gone"
55                android:orientation="horizontal" >
56
57                <ImageView
58                    android:src="@drawable/ic_mms_music"
59                    android:layout_width="wrap_content"
60                    android:layout_height="wrap_content" />
61
62                <TextView android:id="@+id/audio_name"
63                    android:singleLine="true"
64                    android:layout_gravity="center_vertical"
65                    android:layout_width="wrap_content"
66                    android:layout_height="wrap_content" />
67            </LinearLayout>
68        </LinearLayout>
69
70        <LinearLayout android:id="@+id/controler"
71            android:layout_width="wrap_content"
72            android:layout_height="wrap_content"
73            android:layout_gravity="center_vertical"
74            android:orientation="vertical">
75
76            <LinearLayout
77                android:layout_width="wrap_content"
78                android:layout_height="wrap_content"
79                android:orientation="horizontal">
80
81                <ImageButton  android:id="@+id/pre_slide_button"
82                    style="?android:attr/buttonStyleSmall"
83                    android:layout_width="wrap_content"
84                    android:layout_height="50dip"
85                    android:src="@drawable/ic_maps_back" />
86
87                <ImageButton  android:id="@+id/next_slide_button"
88                    style="?android:attr/buttonStyleSmall"
89                    android:layout_width="wrap_content"
90                    android:layout_height="50dip"
91                    android:src="@drawable/ic_maps_next" />
92            </LinearLayout>
93
94            <Button android:id="@+id/preview_button"
95                style="?android:attr/buttonStyleSmall"
96                android:layout_width="match_parent"
97                android:layout_height="wrap_content"
98                android:lines="2"
99                android:text="@string/preview" />
100
101            <Button android:id="@+id/replace_image_button"
102                style="?android:attr/buttonStyleSmall"
103                android:layout_width="match_parent"
104                android:layout_height="wrap_content"
105                android:lines="2"
106                android:text="@string/replace_image" />
107
108            <Button android:id="@+id/remove_slide_button"
109                style="?android:attr/buttonStyleSmall"
110                android:layout_width="match_parent"
111                android:layout_height="wrap_content"
112                android:lines="2"
113                android:text="@string/remove_slide" />
114        </LinearLayout>
115    </LinearLayout>
116
117    <LinearLayout
118        android:orientation="horizontal"
119        android:layout_width="match_parent"
120        android:layout_height="wrap_content"
121        android:paddingBottom="2dip"
122        android:gravity="bottom"
123        android:baselineAligned="false">
124
125        <EditText android:id="@+id/text_message"
126            android:layout_width="0dip"
127            android:layout_height="wrap_content"
128            android:layout_weight="1"
129            android:nextFocusRight="@+id/done_button"
130            android:textSize="15sp"
131            android:capitalize="sentences"
132            android:autoText="true"
133            android:paddingLeft="5dip"
134            android:paddingTop="5dip"
135            android:paddingRight="5dip"
136            android:paddingBottom="5dip"
137            android:hint="@string/type_to_compose_text_or_leave_blank"
138            android:maxLines="1" >
139            <requestFocus/>
140        </EditText>
141
142        <Button android:id="@+id/done_button"
143            android:layout_width="wrap_content"
144            android:layout_height="wrap_content"
145            android:nextFocusLeft="@+id/text_message"
146            android:text="@string/done"
147        />
148    </LinearLayout>
149</com.android.mms.ui.BasicSlideEditorView>
150