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="50dip" 98 android:text="@string/preview" /> 99 100 <Button android:id="@+id/replace_image_button" 101 style="?android:attr/buttonStyleSmall" 102 android:layout_width="match_parent" 103 android:layout_height="50dip" 104 android:text="@string/replace_image" /> 105 106 <Button android:id="@+id/remove_slide_button" 107 style="?android:attr/buttonStyleSmall" 108 android:layout_width="match_parent" 109 android:layout_height="50dip" 110 android:text="@string/remove_slide" /> 111 </LinearLayout> 112 </LinearLayout> 113 114 <LinearLayout 115 android:orientation="horizontal" 116 android:layout_width="match_parent" 117 android:layout_height="wrap_content" 118 android:paddingBottom="2dip" 119 android:gravity="bottom" 120 android:baselineAligned="false"> 121 122 <EditText android:id="@+id/text_message" 123 android:layout_width="0dip" 124 android:layout_height="wrap_content" 125 android:layout_weight="1" 126 android:nextFocusRight="@+id/done_button" 127 android:textSize="15sp" 128 android:capitalize="sentences" 129 android:autoText="true" 130 android:paddingLeft="5dip" 131 android:paddingTop="5dip" 132 android:paddingRight="5dip" 133 android:paddingBottom="5dip" 134 android:hint="@string/type_to_compose_text_or_leave_blank" 135 android:maxLines="1" > 136 <requestFocus/> 137 </EditText> 138 139 <Button android:id="@+id/done_button" 140 android:layout_width="wrap_content" 141 android:layout_height="wrap_content" 142 android:nextFocusLeft="@+id/text_message" 143 android:text="@string/done" 144 /> 145 </LinearLayout> 146 </com.android.mms.ui.BasicSlideEditorView> 147