Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

auto import from //depot/cupcake/@135843

  • Loading branch information...
commit 72735c62aba8fd2a9420a0f9f83d22543e3c164f 1 parent 892f2c5
The Android Open Source Project authored
Showing with 28,644 additions and 0 deletions.
  1. +15 −0 Android.mk
  2. +246 −0 AndroidManifest.xml
  3. 0  MODULE_LICENSE_APACHE2
  4. +190 −0 NOTICE
  5. BIN  res/drawable/attachment_editor_bg.9.png
  6. BIN  res/drawable/bottombar_landscape_565.png
  7. +27 −0 res/drawable/chat_history_selector.xml
  8. BIN  res/drawable/ic_attachment_universal_small.png
  9. BIN  res/drawable/ic_dialog_email_pending.png
  10. BIN  res/drawable/ic_email_pending.png
  11. BIN  res/drawable/ic_gallery_video_overlay.png
  12. BIN  res/drawable/ic_launcher_camera.png
  13. BIN  res/drawable/ic_launcher_camera_record.png
  14. BIN  res/drawable/ic_launcher_gallery.png
  15. BIN  res/drawable/ic_launcher_musicplayer_2.png
  16. BIN  res/drawable/ic_launcher_record_audio.png
  17. BIN  res/drawable/ic_launcher_slideshow_add_sms.png
  18. BIN  res/drawable/ic_launcher_slideshow_default_sms.png
  19. BIN  res/drawable/ic_launcher_smsmms.png
  20. BIN  res/drawable/ic_launcher_video_player.png
  21. BIN  res/drawable/ic_list_alert_sms_failed.png
  22. BIN  res/drawable/ic_maps_back.png
  23. BIN  res/drawable/ic_maps_next.png
  24. BIN  res/drawable/ic_menu_add_slide.png
  25. BIN  res/drawable/ic_menu_add_sound.png
  26. BIN  res/drawable/ic_menu_attachment.png
  27. BIN  res/drawable/ic_menu_contact.png
  28. BIN  res/drawable/ic_menu_delete_played.png
  29. BIN  res/drawable/ic_menu_duration.png
  30. BIN  res/drawable/ic_menu_move_down.png
  31. BIN  res/drawable/ic_menu_move_up.png
  32. BIN  res/drawable/ic_menu_movie.png
  33. BIN  res/drawable/ic_menu_picture.png
  34. BIN  res/drawable/ic_menu_remove_picture.png
  35. BIN  res/drawable/ic_menu_remove_sound.png
  36. BIN  res/drawable/ic_menu_remove_text.png
  37. BIN  res/drawable/ic_menu_undelivered.png
  38. BIN  res/drawable/ic_mms_drm_protected.png
  39. BIN  res/drawable/ic_mms_duration.png
  40. BIN  res/drawable/ic_mms_layout.png
  41. BIN  res/drawable/ic_mms_message_details.png
  42. BIN  res/drawable/ic_mms_music.png
  43. BIN  res/drawable/ic_mms_text_bottom.png
  44. BIN  res/drawable/ic_mms_text_top.png
  45. BIN  res/drawable/ic_sms_mms_delivered.png
  46. BIN  res/drawable/ic_sms_mms_not_delivered.png
  47. BIN  res/drawable/ic_sms_mms_pending.png
  48. BIN  res/drawable/ic_sms_unread_msg_indicator.png
  49. +24 −0 res/drawable/listitem_background.xml
  50. +24 −0 res/drawable/listitem_background_lightblue.xml
  51. BIN  res/drawable/mms_play_btn.png
  52. BIN  res/drawable/movie.png
  53. BIN  res/drawable/stat_notify_mms.png
  54. BIN  res/drawable/stat_notify_mms_failed.png
  55. BIN  res/drawable/stat_notify_sms.png
  56. BIN  res/drawable/stat_notify_sms_failed.png
  57. BIN  res/drawable/stat_sys_no_sim.png
  58. BIN  res/drawable/textfield_im_user_pressed_pad.9.png
  59. BIN  res/drawable/textfield_im_user_selected_pad.9.png
  60. +57 −0 res/layout-finger/recipient_filter_item.xml
  61. +94 −0 res/layout/audio_attachment_view.xml
  62. +178 −0 res/layout/compose_message_activity.xml
  63. +123 −0 res/layout/confirm_rate_limit_activity.xml
  64. +101 −0 res/layout/conversation_header.xml
  65. +26 −0 res/layout/conversation_list_screen.xml
  66. +32 −0 res/layout/delivery_report_activity.xml
  67. +43 −0 res/layout/delivery_report_header.xml
  68. +71 −0 res/layout/delivery_report_list_item.xml
  69. +147 −0 res/layout/edit_slide_activity.xml
  70. +63 −0 res/layout/edit_slide_duration.xml
  71. +63 −0 res/layout/edit_slide_text.xml
  72. +44 −0 res/layout/icon_list_item.xml
  73. +63 −0 res/layout/image_attachment_view.xml
  74. +64 −0 res/layout/message_list_item.xml
  75. +43 −0 res/layout/mms_downloading_view.xml
  76. +48 −0 res/layout/mms_layout_view.xml
  77. +42 −0 res/layout/playing_audio_info.xml
  78. +28 −0 res/layout/recipients_editor.xml
  79. +59 −0 res/layout/retry_sending_dialog.xml
  80. +44 −0 res/layout/sim_list.xml
  81. +37 −0 res/layout/slideshow.xml
  82. +96 −0 res/layout/slideshow_attachment_view.xml
  83. +91 −0 res/layout/slideshow_edit_item.xml
  84. +49 −0 res/layout/smiley_menu_item.xml
  85. +76 −0 res/layout/video_attachment_view.xml
  86. +56 −0 res/values-cs/arrays.xml
  87. +250 −0 res/values-cs/strings.xml
  88. +56 −0 res/values-de/arrays.xml
  89. +250 −0 res/values-de/strings.xml
  90. +56 −0 res/values-es/arrays.xml
  91. +250 −0 res/values-es/strings.xml
  92. +56 −0 res/values-fr/arrays.xml
  93. +250 −0 res/values-fr/strings.xml
  94. +56 −0 res/values-it/arrays.xml
  95. +250 −0 res/values-it/strings.xml
  96. +56 −0 res/values-ja/arrays.xml
  97. +250 −0 res/values-ja/strings.xml
  98. +56 −0 res/values-ko/arrays.xml
  99. +250 −0 res/values-ko/strings.xml
  100. +56 −0 res/values-nb/arrays.xml
  101. +249 −0 res/values-nb/strings.xml
  102. +56 −0 res/values-nl/arrays.xml
  103. +250 −0 res/values-nl/strings.xml
  104. +56 −0 res/values-pl/arrays.xml
  105. +250 −0 res/values-pl/strings.xml
  106. +56 −0 res/values-ru/arrays.xml
  107. +250 −0 res/values-ru/strings.xml
  108. +56 −0 res/values-zh-rCN/arrays.xml
  109. +250 −0 res/values-zh-rCN/strings.xml
  110. +56 −0 res/values-zh-rTW/arrays.xml
  111. +250 −0 res/values-zh-rTW/strings.xml
  112. +64 −0 res/values/arrays.xml
  113. +37 −0 res/values/colors.xml
  114. +537 −0 res/values/strings.xml
  115. +69 −0 res/xml/preferences.xml
  116. +69 −0 src/com/android/mms/AttachImage.java
  117. +43 −0 src/com/android/mms/ContentClassException.java
  118. +37 −0 src/com/android/mms/ContentRestrictionException.java
  119. +37 −0 src/com/android/mms/ExceedMessageSizeException.java
  120. +57 −0 src/com/android/mms/MmsApp.java
  121. +33 −0 src/com/android/mms/MmsConfig.java
  122. +37 −0 src/com/android/mms/ResolutionException.java
  123. +37 −0 src/com/android/mms/UnsupportContentTypeException.java
  124. +410 −0 src/com/android/mms/activity/VCalManager.java
  125. +371 −0 src/com/android/mms/activity/VCardManager.java
  126. +99 −0 src/com/android/mms/dom/AttrImpl.java
  127. +144 −0 src/com/android/mms/dom/DocumentImpl.java
  128. +153 −0 src/com/android/mms/dom/ElementImpl.java
  129. +87 −0 src/com/android/mms/dom/NamedNodeMapImpl.java
  130. +223 −0 src/com/android/mms/dom/NodeImpl.java
  131. +128 −0 src/com/android/mms/dom/NodeListImpl.java
  132. +127 −0 src/com/android/mms/dom/events/EventImpl.java
  133. +131 −0 src/com/android/mms/dom/events/EventTargetImpl.java
  134. +155 −0 src/com/android/mms/dom/smil/ElementParallelTimeContainerImpl.java
  135. +73 −0 src/com/android/mms/dom/smil/ElementSequentialTimeContainerImpl.java
  136. +33 −0 src/com/android/mms/dom/smil/ElementTimeContainerImpl.java
  137. +335 −0 src/com/android/mms/dom/smil/ElementTimeImpl.java
  138. +291 −0 src/com/android/mms/dom/smil/SmilDocumentImpl.java
  139. +47 −0 src/com/android/mms/dom/smil/SmilElementImpl.java
  140. +64 −0 src/com/android/mms/dom/smil/SmilLayoutElementImpl.java
  141. +342 −0 src/com/android/mms/dom/smil/SmilMediaElementImpl.java
  142. +217 −0 src/com/android/mms/dom/smil/SmilParElementImpl.java
  143. +609 −0 src/com/android/mms/dom/smil/SmilPlayer.java
  144. +29 −0 src/com/android/mms/dom/smil/SmilRefElementImpl.java
  145. +278 −0 src/com/android/mms/dom/smil/SmilRegionElementImpl.java
  146. +53 −0 src/com/android/mms/dom/smil/SmilRegionMediaElementImpl.java
  147. +84 −0 src/com/android/mms/dom/smil/SmilRootLayoutElementImpl.java
  148. +295 −0 src/com/android/mms/dom/smil/TimeImpl.java
  149. +53 −0 src/com/android/mms/dom/smil/TimeListImpl.java
  150. +95 −0 src/com/android/mms/dom/smil/parser/SmilContentHandler.java
  151. +76 −0 src/com/android/mms/dom/smil/parser/SmilXmlParser.java
  152. +80 −0 src/com/android/mms/dom/smil/parser/SmilXmlSerializer.java
  153. +66 −0 src/com/android/mms/drm/DrmUtils.java
  154. +252 −0 src/com/android/mms/drm/DrmWrapper.java
  155. +74 −0 src/com/android/mms/layout/HVGALayoutParameters.java
  156. +109 −0 src/com/android/mms/layout/LayoutManager.java
  157. +56 −0 src/com/android/mms/layout/LayoutParameters.java
  158. +164 −0 src/com/android/mms/model/AudioModel.java
  159. +111 −0 src/com/android/mms/model/CarrierContentRestriction.java
  160. +34 −0 src/com/android/mms/model/ContentRestriction.java
  161. +31 −0 src/com/android/mms/model/ContentRestrictionFactory.java
  162. +22 −0 src/com/android/mms/model/IModelChangedObserver.java
  163. +180 −0 src/com/android/mms/model/ImageModel.java
  164. +301 −0 src/com/android/mms/model/LayoutModel.java
  165. +318 −0 src/com/android/mms/model/MediaModel.java
  166. +218 −0 src/com/android/mms/model/MediaModelFactory.java
  167. +62 −0 src/com/android/mms/model/Model.java
  168. +79 −0 src/com/android/mms/model/RegionMediaModel.java
  169. +147 −0 src/com/android/mms/model/RegionModel.java
  170. +509 −0 src/com/android/mms/model/SlideModel.java
  171. +573 −0 src/com/android/mms/model/SlideshowModel.java
  172. +411 −0 src/com/android/mms/model/SmilHelper.java
  173. +127 −0 src/com/android/mms/model/TextModel.java
  174. +134 −0 src/com/android/mms/model/VideoModel.java
  175. +50 −0 src/com/android/mms/transaction/AbstractRetryScheme.java
  176. +62 −0 src/com/android/mms/transaction/DefaultRetryScheme.java
  177. +262 −0 src/com/android/mms/transaction/HttpUtils.java
  178. +34 −0 src/com/android/mms/transaction/MessageSender.java
  179. +81 −0 src/com/android/mms/transaction/MessageStatusReceiver.java
  180. +534 −0 src/com/android/mms/transaction/MessagingNotification.java
  181. +138 −0 src/com/android/mms/transaction/MmsMessageSender.java
  182. +82 −0 src/com/android/mms/transaction/MmsSystemEventReceiver.java
  183. +240 −0 src/com/android/mms/transaction/NotificationTransaction.java
  184. +78 −0 src/com/android/mms/transaction/Observable.java
  185. +32 −0 src/com/android/mms/transaction/Observer.java
  186. +35 −0 src/com/android/mms/transaction/PrivilegedSmsReceiver.java
  187. +89 −0 src/com/android/mms/transaction/ProgressCallbackEntity.java
  188. +234 −0 src/com/android/mms/transaction/PushReceiver.java
  189. +107 −0 src/com/android/mms/transaction/ReadRecTransaction.java
  190. +230 −0 src/com/android/mms/transaction/RetrieveTransaction.java
  191. +236 −0 src/com/android/mms/transaction/RetryScheduler.java
  192. +179 −0 src/com/android/mms/transaction/SendTransaction.java
  193. +65 −0 src/com/android/mms/transaction/SimFullReceiver.java
  194. +169 −0 src/com/android/mms/transaction/SmsMessageSender.java
  195. +91 −0 src/com/android/mms/transaction/SmsReceiver.java
  196. +415 −0 src/com/android/mms/transaction/SmsReceiverService.java
  197. +217 −0 src/com/android/mms/transaction/Transaction.java
  198. +158 −0 src/com/android/mms/transaction/TransactionBundle.java
  199. +776 −0 src/com/android/mms/transaction/TransactionService.java
  200. +133 −0 src/com/android/mms/transaction/TransactionSettings.java
  201. +89 −0 src/com/android/mms/transaction/TransactionState.java
  202. +45 −0 src/com/android/mms/ui/AdaptableSlideViewInterface.java
  203. +276 −0 src/com/android/mms/ui/AttachmentEditor.java
  204. +78 −0 src/com/android/mms/ui/AttachmentTypeSelectorAdapter.java
  205. +212 −0 src/com/android/mms/ui/AudioAttachmentView.java
  206. +189 −0 src/com/android/mms/ui/BasicSlideEditorView.java
  207. +57 −0 src/com/android/mms/ui/ClassZeroActivity.java
  208. +3,448 −0 src/com/android/mms/ui/ComposeMessageActivity.java
  209. +119 −0 src/com/android/mms/ui/ConfirmRateLimitActivity.java
  210. +191 −0 src/com/android/mms/ui/ConversationHeader.java
  211. +208 −0 src/com/android/mms/ui/ConversationHeaderView.java
  212. +627 −0 src/com/android/mms/ui/ConversationList.java
  213. +470 −0 src/com/android/mms/ui/ConversationListAdapter.java
  214. +382 −0 src/com/android/mms/ui/DeliveryReportActivity.java
  215. +60 −0 src/com/android/mms/ui/DeliveryReportAdapter.java
  216. +32 −0 src/com/android/mms/ui/DeliveryReportItem.java
  217. +83 −0 src/com/android/mms/ui/DeliveryReportListItem.java
  218. +158 −0 src/com/android/mms/ui/EditSlideDurationActivity.java
  219. +132 −0 src/com/android/mms/ui/EditSlideTextActivity.java
  220. +85 −0 src/com/android/mms/ui/IconListAdapter.java
  221. +137 −0 src/com/android/mms/ui/ImageAttachmentView.java
  222. +49 −0 src/com/android/mms/ui/LayoutSelectorAdapter.java
  223. +344 −0 src/com/android/mms/ui/ManageSimMessages.java
  224. +44 −0 src/com/android/mms/ui/ManageSimPreference.java
Sorry, we could not display the entire diff because it was too big.
View
15 Android.mk
@@ -0,0 +1,15 @@
+# Copyright 2007-2008 The Android Open Source Project
+
+LOCAL_PATH:= $(call my-dir)
+include $(CLEAR_VARS)
+
+LOCAL_MODULE_TAGS := eng development
+
+LOCAL_SRC_FILES := $(call all-java-files-under, src)
+
+LOCAL_PACKAGE_NAME := Mms
+
+include $(BUILD_PACKAGE)
+
+# This finds and builds the test apk as well, so a single make does both.
+include $(call all-makefiles-under,$(LOCAL_PATH))
View
246 AndroidManifest.xml
@@ -0,0 +1,246 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+/*
+ * Copyright (C) 2007-2008 Esmertec AG.
+ * Copyright (C) 2007-2008 The Android Open Source Project
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+-->
+<manifest xmlns:android="http://schemas.android.com/apk/res/android"
+ package="com.android.mms">
+
+ <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
+ <uses-permission android:name="android.permission.CALL_PHONE" />
+ <uses-permission android:name="android.permission.READ_CONTACTS" />
+ <uses-permission android:name="android.permission.WRITE_CONTACTS" />
+ <uses-permission android:name="android.permission.RECEIVE_SMS" />
+ <uses-permission android:name="android.permission.RECEIVE_MMS" />
+ <uses-permission android:name="android.permission.SEND_SMS" />
+ <uses-permission android:name="android.permission.VIBRATE" />
+ <uses-permission android:name="android.permission.INTERNET" />
+ <uses-permission android:name="android.permission.READ_SMS"/>
+ <uses-permission android:name="android.permission.WRITE_SMS"/>
+ <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
+ <uses-permission android:name="android.permission.CHANGE_NETWORK_STATE" />
+ <uses-permission android:name="android.permission.READ_PHONE_STATE" />
+ <uses-permission android:name="android.permission.WAKE_LOCK" />
+
+ <application android:name="MmsApp"
+ android:label="@string/app_label"
+ android:icon="@drawable/ic_launcher_smsmms"
+ android:taskAffinity="android.task.mms"
+ android:allowTaskReparenting="true">
+
+ <service android:name=".transaction.TransactionService"
+ android:exported="true" />
+
+ <service android:name=".transaction.SmsReceiverService"
+ android:exported="true" />
+
+ <activity android:name=".ui.ConversationList"
+ android:label="@string/app_label"
+ android:configChanges="orientation|keyboardHidden"
+ android:launchMode="singleTop">
+ <intent-filter>
+ <action android:name="android.intent.action.MAIN" />
+ <category android:name="android.intent.category.LAUNCHER" />
+ <category android:name="android.intent.category.DEFAULT" />
+ </intent-filter>
+ <intent-filter>
+ <action android:name="android.intent.action.MAIN" />
+ <category android:name="android.intent.category.DEFAULT" />
+ <data android:mimeType="vnd.android.cursor.dir/mms" />
+ </intent-filter>
+ <intent-filter>
+ <action android:name="android.intent.action.MAIN" />
+ <category android:name="android.intent.category.DEFAULT" />
+ <data android:mimeType="vnd.android-dir/mms-sms" />
+ </intent-filter>
+ </activity>
+
+ <activity android:name=".ui.SelectContactMethodActivity"
+ android:label="Select Contact Method"
+ android:theme="@android:style/Theme.Dialog">
+ </activity>
+
+ <activity android:name=".ui.ComposeMessageActivity"
+ android:configChanges="orientation|keyboardHidden"
+ android:windowSoftInputMode="stateHidden">
+ <intent-filter>
+ <action android:name="android.intent.action.VIEW" />
+ <category android:name="android.intent.category.DEFAULT" />
+ <data android:mimeType="vnd.android-dir/mms-sms" />
+ </intent-filter>
+ <intent-filter>
+ <action android:name="android.intent.action.VIEW" />
+ <action android:name="android.intent.action.SENDTO" />
+ <category android:name="android.intent.category.DEFAULT" />
+ <category android:name="android.intent.category.BROWSABLE" />
+ <data android:scheme="sms" />
+ <data android:scheme="smsto" />
+ </intent-filter>
+ <intent-filter>
+ <action android:name="android.intent.action.VIEW" />
+ <action android:name="android.intent.action.SENDTO" />
+ <category android:name="android.intent.category.DEFAULT" />
+ <category android:name="android.intent.category.BROWSABLE" />
+ <data android:scheme="mms" />
+ <data android:scheme="mmsto" />
+ </intent-filter>
+ <intent-filter>
+ <action android:name="android.intent.action.SEND" />
+ <category android:name="android.intent.category.DEFAULT" />
+ <data android:mimeType="image/*" />
+ </intent-filter>
+ <intent-filter>
+ <action android:name="android.intent.action.SEND" />
+ <category android:name="android.intent.category.DEFAULT" />
+ <data android:mimeType="video/*" />
+ </intent-filter>
+ <intent-filter>
+ <action android:name="android.intent.action.SEND" />
+ <category android:name="android.intent.category.DEFAULT" />
+ <data android:mimeType="text/plain" />
+ </intent-filter>
+ </activity>
+
+ <activity android:name=".ui.DeliveryReportActivity"
+ android:label="Delivery report"
+ android:theme="@android:style/Theme.Dialog">
+ </activity>
+
+ <activity android:name=".ui.AddAttachmentActivity"
+ android:label="Add attachment:"
+ android:theme="@android:style/Theme.Dialog">
+ </activity>
+
+ <activity android:name=".ui.LayoutModeSelectorActivity"
+ android:label="Select layout"
+ android:theme="@android:style/Theme.Dialog">
+ </activity>
+
+ <activity android:name=".ui.EditSlideDurationActivity"
+ android:label="Change duration"
+ android:theme="@android:style/Theme.Dialog">
+ </activity>
+
+ <activity android:name=".ui.EditSlideTextActivity"
+ android:label="Edit text"
+ android:theme="@android:style/Theme.Dialog" />
+
+ <activity android:name=".ui.SlideshowEditActivity"
+ android:label="Edit slideshow" />
+
+ <activity android:name=".ui.SlideEditorActivity"
+ android:label="Edit slide" />
+
+ <activity android:name=".ui.RecipientsPicker"
+ android:label="Pick Numbers" />
+
+ <activity android:name=".ui.SlideshowActivity"
+ android:label="Slideshow">
+ </activity>
+
+ <activity android:name=".ui.ClassZeroActivity"
+ android:label="Class 0 Message"
+ android:theme="@android:style/Theme.Dialog">
+ </activity>
+
+ <activity android:name=".ui.MessagingPreferenceActivity"
+ android:label="@string/preferences_title" />
+
+ <receiver android:name=".transaction.PushReceiver"
+ android:permission="android.permission.BROADCAST_WAP_PUSH">
+ <intent-filter>
+ <action android:name="android.provider.Telephony.WAP_PUSH_RECEIVED" />
+ <data android:mimeType="application/vnd.wap.mms-message" />
+ </intent-filter>
+ </receiver>
+
+ <receiver android:name=".transaction.MmsSystemEventReceiver">
+ <intent-filter>
+ <action android:name="android.intent.action.CONTENT_CHANGED" />
+ </intent-filter>
+ <intent-filter>
+ <action android:name="android.intent.action.BOOT_COMPLETED" />
+ </intent-filter>
+ <intent-filter>
+ <action android:name="android.intent.action.ANY_DATA_STATE" />
+ </intent-filter>
+ </receiver>
+
+ <activity android:name="AttachImage"
+ android:label="Send using MMS\u2026"
+ android:taskAffinity="">
+ <intent-filter>
+ <action android:name="com.android.mms.action.ATTACH_IMAGE" />
+ <data android:mimeType="image/*" />
+ <category android:name="android.intent.category.DEFAULT" />
+ <category android:name="android.intent.category.ALTERNATIVE" />
+ <category android:name="android.intent.category.SELECTED_ALTERNATIVE" />
+ </intent-filter>
+ </activity>
+
+ <activity android:name=".ui.ManageSimMessages"
+ android:launchMode="singleTop"
+ android:label="@string/sim_manage_messages_title">
+ <intent-filter>
+ <action android:name="android.intent.action.VIEW" />
+ </intent-filter>
+ </activity>
+
+ <!-- Require sender permissions to prevent SMS spoofing -->
+ <receiver android:name=".transaction.PrivilegedSmsReceiver"
+ android:permission="android.permission.BROADCAST_SMS">
+ <intent-filter>
+ <action android:name="android.provider.Telephony.SMS_RECEIVED" />
+ </intent-filter>
+ </receiver>
+
+ <!-- Catch-all receiver for broadcasts that don't have associated security -->
+ <receiver android:name=".transaction.SmsReceiver">
+ <intent-filter>
+ <action android:name="android.intent.action.BOOT_COMPLETED" />
+ </intent-filter>
+ <intent-filter>
+ <action android:name="android.intent.action.SERVICE_STATE" />
+ </intent-filter>
+ <intent-filter>
+ <action android:name="com.android.mms.transaction.MESSAGE_SENT" />
+ <!-- TODO Do a better data match here. -->
+ <data android:scheme="content" />
+ </intent-filter>
+ </receiver>
+
+ <receiver android:name=".transaction.MessageStatusReceiver">
+ <intent-filter>
+ <action android:name="com.android.mms.transaction.MessageStatusReceiver.MESSAGE_STATUS_RECEIVED" />
+ </intent-filter>
+ </receiver>
+
+ <receiver android:name=".transaction.SimFullReceiver">
+ <intent-filter>
+ <action android:name="android.provider.Telephony.SIM_FULL" />
+ </intent-filter>
+ </receiver>
+
+ <activity android:name=".ui.ConfirmRateLimitActivity"
+ android:theme="@android:style/Theme.Dialog">
+ <intent-filter>
+ <action android:name="com.android.mms.RATE_LIMIT_SURPASSED" />
+ <category android:name="android.intent.category.DEFAULT" />
+ </intent-filter>
+ </activity>
+ </application>
+</manifest>
View
0  MODULE_LICENSE_APACHE2
No changes.
View
190 NOTICE
@@ -0,0 +1,190 @@
+
+ Copyright (c) 2005-2008, The Android Open Source Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+
+
+ Apache License
+ Version 2.0, January 2004
+ http://www.apache.org/licenses/
+
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+ 1. Definitions.
+
+ "License" shall mean the terms and conditions for use, reproduction,
+ and distribution as defined by Sections 1 through 9 of this document.
+
+ "Licensor" shall mean the copyright owner or entity authorized by
+ the copyright owner that is granting the License.
+
+ "Legal Entity" shall mean the union of the acting entity and all
+ other entities that control, are controlled by, or are under common
+ control with that entity. For the purposes of this definition,
+ "control" means (i) the power, direct or indirect, to cause the
+ direction or management of such entity, whether by contract or
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
+ outstanding shares, or (iii) beneficial ownership of such entity.
+
+ "You" (or "Your") shall mean an individual or Legal Entity
+ exercising permissions granted by this License.
+
+ "Source" form shall mean the preferred form for making modifications,
+ including but not limited to software source code, documentation
+ source, and configuration files.
+
+ "Object" form shall mean any form resulting from mechanical
+ transformation or translation of a Source form, including but
+ not limited to compiled object code, generated documentation,
+ and conversions to other media types.
+
+ "Work" shall mean the work of authorship, whether in Source or
+ Object form, made available under the License, as indicated by a
+ copyright notice that is included in or attached to the work
+ (an example is provided in the Appendix below).
+
+ "Derivative Works" shall mean any work, whether in Source or Object
+ form, that is based on (or derived from) the Work and for which the
+ editorial revisions, annotations, elaborations, or other modifications
+ represent, as a whole, an original work of authorship. For the purposes
+ of this License, Derivative Works shall not include works that remain
+ separable from, or merely link (or bind by name) to the interfaces of,
+ the Work and Derivative Works thereof.
+
+ "Contribution" shall mean any work of authorship, including
+ the original version of the Work and any modifications or additions
+ to that Work or Derivative Works thereof, that is intentionally
+ submitted to Licensor for inclusion in the Work by the copyright owner
+ or by an individual or Legal Entity authorized to submit on behalf of
+ the copyright owner. For the purposes of this definition, "submitted"
+ means any form of electronic, verbal, or written communication sent
+ to the Licensor or its representatives, including but not limited to
+ communication on electronic mailing lists, source code control systems,
+ and issue tracking systems that are managed by, or on behalf of, the
+ Licensor for the purpose of discussing and improving the Work, but
+ excluding communication that is conspicuously marked or otherwise
+ designated in writing by the copyright owner as "Not a Contribution."
+
+ "Contributor" shall mean Licensor and any individual or Legal Entity
+ on behalf of whom a Contribution has been received by Licensor and
+ subsequently incorporated within the Work.
+
+ 2. Grant of Copyright License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ copyright license to reproduce, prepare Derivative Works of,
+ publicly display, publicly perform, sublicense, and distribute the
+ Work and such Derivative Works in Source or Object form.
+
+ 3. Grant of Patent License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ (except as stated in this section) patent license to make, have made,
+ use, offer to sell, sell, import, and otherwise transfer the Work,
+ where such license applies only to those patent claims licensable
+ by such Contributor that are necessarily infringed by their
+ Contribution(s) alone or by combination of their Contribution(s)
+ with the Work to which such Contribution(s) was submitted. If You
+ institute patent litigation against any entity (including a
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
+ or a Contribution incorporated within the Work constitutes direct
+ or contributory patent infringement, then any patent licenses
+ granted to You under this License for that Work shall terminate
+ as of the date such litigation is filed.
+
+ 4. Redistribution. You may reproduce and distribute copies of the
+ Work or Derivative Works thereof in any medium, with or without
+ modifications, and in Source or Object form, provided that You
+ meet the following conditions:
+
+ (a) You must give any other recipients of the Work or
+ Derivative Works a copy of this License; and
+
+ (b) You must cause any modified files to carry prominent notices
+ stating that You changed the files; and
+
+ (c) You must retain, in the Source form of any Derivative Works
+ that You distribute, all copyright, patent, trademark, and
+ attribution notices from the Source form of the Work,
+ excluding those notices that do not pertain to any part of
+ the Derivative Works; and
+
+ (d) If the Work includes a "NOTICE" text file as part of its
+ distribution, then any Derivative Works that You distribute must
+ include a readable copy of the attribution notices contained
+ within such NOTICE file, excluding those notices that do not
+ pertain to any part of the Derivative Works, in at least one
+ of the following places: within a NOTICE text file distributed
+ as part of the Derivative Works; within the Source form or
+ documentation, if provided along with the Derivative Works; or,
+ within a display generated by the Derivative Works, if and
+ wherever such third-party notices normally appear. The contents
+ of the NOTICE file are for informational purposes only and
+ do not modify the License. You may add Your own attribution
+ notices within Derivative Works that You distribute, alongside
+ or as an addendum to the NOTICE text from the Work, provided
+ that such additional attribution notices cannot be construed
+ as modifying the License.
+
+ You may add Your own copyright statement to Your modifications and
+ may provide additional or different license terms and conditions
+ for use, reproduction, or distribution of Your modifications, or
+ for any such Derivative Works as a whole, provided Your use,
+ reproduction, and distribution of the Work otherwise complies with
+ the conditions stated in this License.
+
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
+ any Contribution intentionally submitted for inclusion in the Work
+ by You to the Licensor shall be under the terms and conditions of
+ this License, without any additional terms or conditions.
+ Notwithstanding the above, nothing herein shall supersede or modify
+ the terms of any separate license agreement you may have executed
+ with Licensor regarding such Contributions.
+
+ 6. Trademarks. This License does not grant permission to use the trade
+ names, trademarks, service marks, or product names of the Licensor,
+ except as required for reasonable and customary use in describing the
+ origin of the Work and reproducing the content of the NOTICE file.
+
+ 7. Disclaimer of Warranty. Unless required by applicable law or
+ agreed to in writing, Licensor provides the Work (and each
+ Contributor provides its Contributions) on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+ implied, including, without limitation, any warranties or conditions
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
+ PARTICULAR PURPOSE. You are solely responsible for determining the
+ appropriateness of using or redistributing the Work and assume any
+ risks associated with Your exercise of permissions under this License.
+
+ 8. Limitation of Liability. In no event and under no legal theory,
+ whether in tort (including negligence), contract, or otherwise,
+ unless required by applicable law (such as deliberate and grossly
+ negligent acts) or agreed to in writing, shall any Contributor be
+ liable to You for damages, including any direct, indirect, special,
+ incidental, or consequential damages of any character arising as a
+ result of this License or out of the use or inability to use the
+ Work (including but not limited to damages for loss of goodwill,
+ work stoppage, computer failure or malfunction, or any and all
+ other commercial damages or losses), even if such Contributor
+ has been advised of the possibility of such damages.
+
+ 9. Accepting Warranty or Additional Liability. While redistributing
+ the Work or Derivative Works thereof, You may choose to offer,
+ and charge a fee for, acceptance of support, warranty, indemnity,
+ or other liability obligations and/or rights consistent with this
+ License. However, in accepting such obligations, You may act only
+ on Your own behalf and on Your sole responsibility, not on behalf
+ of any other Contributor, and only if You agree to indemnify,
+ defend, and hold each Contributor harmless for any liability
+ incurred by, or claims asserted against, such Contributor by reason
+ of your accepting any such warranty or additional liability.
+
+ END OF TERMS AND CONDITIONS
+
View
BIN  res/drawable/attachment_editor_bg.9.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  res/drawable/bottombar_landscape_565.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
27 res/drawable/chat_history_selector.xml
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2008 Google Inc.
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+
+<selector xmlns:android="http://schemas.android.com/apk/res/android">
+ <item
+ android:state_focused="true"
+ android:state_pressed="false"
+ android:drawable="@drawable/textfield_im_user_selected_pad" />
+
+ <item
+ android:state_focused="true"
+ android:state_pressed="true"
+ android:drawable="@drawable/textfield_im_user_pressed_pad" />
+</selector>
View
BIN  res/drawable/ic_attachment_universal_small.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  res/drawable/ic_dialog_email_pending.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  res/drawable/ic_email_pending.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  res/drawable/ic_gallery_video_overlay.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  res/drawable/ic_launcher_camera.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  res/drawable/ic_launcher_camera_record.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  res/drawable/ic_launcher_gallery.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  res/drawable/ic_launcher_musicplayer_2.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  res/drawable/ic_launcher_record_audio.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  res/drawable/ic_launcher_slideshow_add_sms.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  res/drawable/ic_launcher_slideshow_default_sms.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  res/drawable/ic_launcher_smsmms.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  res/drawable/ic_launcher_video_player.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  res/drawable/ic_list_alert_sms_failed.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  res/drawable/ic_maps_back.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  res/drawable/ic_maps_next.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  res/drawable/ic_menu_add_slide.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  res/drawable/ic_menu_add_sound.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  res/drawable/ic_menu_attachment.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  res/drawable/ic_menu_contact.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  res/drawable/ic_menu_delete_played.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  res/drawable/ic_menu_duration.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  res/drawable/ic_menu_move_down.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  res/drawable/ic_menu_move_up.png
Diff not rendered
View
BIN  res/drawable/ic_menu_movie.png
Diff not rendered
View
BIN  res/drawable/ic_menu_picture.png
Diff not rendered
View
BIN  res/drawable/ic_menu_remove_picture.png
Diff not rendered
View
BIN  res/drawable/ic_menu_remove_sound.png
Diff not rendered
View
BIN  res/drawable/ic_menu_remove_text.png
Diff not rendered
View
BIN  res/drawable/ic_menu_undelivered.png
Diff not rendered
View
BIN  res/drawable/ic_mms_drm_protected.png
Diff not rendered
View
BIN  res/drawable/ic_mms_duration.png
Diff not rendered
View
BIN  res/drawable/ic_mms_layout.png
Diff not rendered
View
BIN  res/drawable/ic_mms_message_details.png
Diff not rendered
View
BIN  res/drawable/ic_mms_music.png
Diff not rendered
View
BIN  res/drawable/ic_mms_text_bottom.png
Diff not rendered
View
BIN  res/drawable/ic_mms_text_top.png
Diff not rendered
View
BIN  res/drawable/ic_sms_mms_delivered.png
Diff not rendered
View
BIN  res/drawable/ic_sms_mms_not_delivered.png
Diff not rendered
View
BIN  res/drawable/ic_sms_mms_pending.png
Diff not rendered
View
BIN  res/drawable/ic_sms_unread_msg_indicator.png
Diff not rendered
View
24 res/drawable/listitem_background.xml
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2007 The Android Open Source Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+
+<selector xmlns:android="http://schemas.android.com/apk/res/android">
+ <item android:state_selected="true"
+ android:drawable="@android:color/transparent" />
+ <item android:state_pressed="true" android:state_selected="false"
+ android:drawable="@android:color/transparent" />
+ <item android:state_selected="false"
+ android:drawable="@android:color/white" />
+</selector>
View
24 res/drawable/listitem_background_lightblue.xml
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2007 The Android Open Source Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+
+<selector xmlns:android="http://schemas.android.com/apk/res/android">
+ <item android:state_selected="true"
+ android:drawable="@android:color/transparent" />
+ <item android:state_pressed="true" android:state_selected="false"
+ android:drawable="@android:color/transparent" />
+ <item android:state_selected="false"
+ android:drawable="@drawable/light_blue_background" />
+</selector>
View
BIN  res/drawable/mms_play_btn.png
Diff not rendered
View
BIN  res/drawable/movie.png
Diff not rendered
View
BIN  res/drawable/stat_notify_mms.png
Diff not rendered
View
BIN  res/drawable/stat_notify_mms_failed.png
Diff not rendered
View
BIN  res/drawable/stat_notify_sms.png
Diff not rendered
View
BIN  res/drawable/stat_notify_sms_failed.png
Diff not rendered
View
BIN  res/drawable/stat_sys_no_sim.png
Diff not rendered
View
BIN  res/drawable/textfield_im_user_pressed_pad.9.png
Diff not rendered
View
BIN  res/drawable/textfield_im_user_selected_pad.9.png
Diff not rendered
View
57 res/layout-finger/recipient_filter_item.xml
@@ -0,0 +1,57 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+/*
+ * Copyright (C) 2008 Esmertec AG.
+ * Copyright (C) 2008 The Android Open Source Project
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+-->
+
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ style="?android:attr/dropDownItemStyle"
+ android:orientation="vertical"
+ android:layout_width="fill_parent"
+ android:layout_height="?android:attr/listPreferredItemHeight">
+
+ <LinearLayout android:id="@+id/name_and_label"
+ android:layout_width="fill_parent"
+ android:layout_height="wrap_content"
+ android:orientation="horizontal">
+
+ <TextView android:id="@+id/name"
+ style="?android:attr/dropDownItemStyle"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:singleLine="true"
+ />
+
+ <TextView android:id="@+id/label"
+ style="?android:attr/dropDownItemStyle"
+ android:layout_width="0dip"
+ android:layout_height="wrap_content"
+ android:layout_weight="1"
+ android:layout_marginLeft="10dip"
+ android:textColor="?android:attr/textColorSecondary"
+ android:singleLine="true"
+ />
+ </LinearLayout>
+
+ <TextView android:id="@+id/number"
+ style="?android:attr/dropDownItemStyle"
+ android:layout_width="fill_parent"
+ android:layout_height="wrap_content"
+ android:singleLine="true"
+ />
+
+</LinearLayout>
View
94 res/layout/audio_attachment_view.xml
@@ -0,0 +1,94 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+/*
+ * Copyright (C) 2006-2008 Esmertec AG.
+ * Copyright (C) 2006-2008 The Android Open Source Project
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+-->
+
+<com.android.mms.ui.AudioAttachmentView xmlns:android="http://schemas.android.com/apk/res/android"
+ android:id="@+id/audio_attachment_view"
+ android:layout_width="fill_parent"
+ android:layout_height="wrap_content"
+ android:orientation="horizontal"
+ android:gravity="center_vertical"
+ android:paddingRight="5dip"
+ android:background="@drawable/attachment_editor_bg">
+
+ <LinearLayout
+ android:layout_width="fill_parent"
+ android:layout_height="wrap_content"
+ android:orientation="vertical"
+ android:gravity="center_horizontal"
+ android:layout_weight="1">
+
+ <ImageView
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:paddingBottom="10dip"
+ android:src="@drawable/ic_launcher_record_audio" />
+
+ <TextView
+ android:id="@+id/audio_name"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content" />
+
+ <TextView
+ android:id="@+id/album_name"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content" />
+
+ <TextView
+ android:id="@+id/artist_name"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content" />
+
+ <TextView
+ android:id="@+id/audio_error_msg"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:textColor="@drawable/text_color_red"
+ android:visibility="gone" />
+
+ </LinearLayout>
+
+ <LinearLayout
+ android:orientation="vertical"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content">
+
+ <Button
+ android:id="@+id/play_audio_button"
+ style="?android:attr/buttonStyleSmall"
+ android:layout_width="100dip"
+ android:layout_height="50dip"
+ android:text="@string/play" />
+
+ <Button
+ android:id="@+id/replace_audio_button"
+ style="?android:attr/buttonStyleSmall"
+ android:layout_width="100dip"
+ android:layout_height="50dip"
+ android:text="@string/replace" />
+
+ <Button
+ android:id="@+id/remove_audio_button"
+ style="?android:attr/buttonStyleSmall"
+ android:layout_width="100dip"
+ android:layout_height="50dip"
+ android:text="@string/remove" />
+
+ </LinearLayout>
+</com.android.mms.ui.AudioAttachmentView>
View
178 res/layout/compose_message_activity.xml
@@ -0,0 +1,178 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+/*
+ * Copyright (C) 2008 Esmertec AG.
+ * Copyright (C) 2008 The Android Open Source Project
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+-->
+
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_width="fill_parent"
+ android:layout_height="fill_parent"
+ android:orientation="vertical">
+
+ <LinearLayout
+ android:id="@+id/recipients_subject_linear"
+ android:layout_width="fill_parent"
+ android:layout_height="wrap_content"
+ android:paddingTop="5dip"
+ android:paddingBottom="5dip"
+ android:paddingLeft="5dip"
+ android:paddingRight="5dip"
+ android:background="@drawable/white_background"
+ android:orientation="vertical"
+ android:visibility="gone">
+
+ <ViewStub android:id="@+id/recipients_editor_stub"
+ android:layout="@layout/recipients_editor"
+ android:layout_width="fill_parent"
+ android:layout_height="wrap_content"
+ />
+
+ <EditText android:id="@+id/subject"
+ android:layout_width="fill_parent"
+ android:layout_height="wrap_content"
+ android:capitalize="sentences"
+ android:autoText="true"
+ android:singleLine="true"
+ android:hint="@string/subject_hint"
+ android:visibility="gone"/>
+ </LinearLayout>
+
+ <LinearLayout
+ android:layout_width="fill_parent"
+ android:layout_height="fill_parent"
+ android:orientation="vertical"
+ android:background="@drawable/white_background"
+ android:gravity="bottom">
+
+ <view class="com.android.mms.ui.MessageListView"
+ android:id="@+id/history"
+ android:layout_width="fill_parent"
+ android:layout_height="fill_parent"
+ android:layout_weight="1.0"
+ android:listSelector="@drawable/chat_history_selector"
+ android:divider="@android:drawable/divider_horizontal_bright"
+ android:drawSelectorOnTop="true"
+ android:transcriptMode="alwaysScroll"
+ android:scrollbarAlwaysDrawVerticalTrack="true"
+ android:scrollbarStyle="insideInset"
+ android:stackFromBottom="true"
+ android:visibility="gone"
+ android:fadingEdge="none"
+ android:layout_marginBottom="1dip"
+ android:cacheColorHint="@android:color/white"
+ />
+
+ <ScrollView
+ android:layout_width="fill_parent"
+ android:layout_height="wrap_content">
+
+ <LinearLayout
+ android:layout_width="fill_parent"
+ android:layout_height="fill_parent"
+ android:orientation="vertical">
+
+ <LinearLayout
+ android:id="@+id/attachment_editor"
+ android:layout_width="fill_parent"
+ android:layout_height="wrap_content"
+ android:orientation="vertical">
+
+ <ViewStub android:id="@+id/image_attachment_view_stub"
+ android:layout="@layout/image_attachment_view"
+ android:layout_width="fill_parent"
+ android:layout_height="wrap_content"/>
+
+ <ViewStub android:id="@+id/video_attachment_view_stub"
+ android:layout="@layout/video_attachment_view"
+ android:layout_width="fill_parent"
+ android:layout_height="wrap_content"/>
+
+ <ViewStub android:id="@+id/audio_attachment_view_stub"
+ android:layout="@layout/audio_attachment_view"
+ android:layout_width="fill_parent"
+ android:layout_height="wrap_content"/>
+
+ <ViewStub android:id="@+id/slideshow_attachment_view_stub"
+ android:layout="@layout/slideshow_attachment_view"
+ android:layout_width="fill_parent"
+ android:layout_height="wrap_content"/>
+ </LinearLayout>
+
+ <LinearLayout
+ android:id="@+id/bottom_panel"
+ android:orientation="horizontal"
+ android:layout_width="fill_parent"
+ android:layout_height="wrap_content"
+ android:paddingTop="5dip"
+ android:paddingBottom="5dip"
+ android:paddingLeft="5dip"
+ android:paddingRight="5dip"
+ android:background="@drawable/bottombar_landscape_565">
+
+ <RelativeLayout
+ android:id="@+id/editor_with_counter"
+ android:layout_width="0dip"
+ android:layout_height="wrap_content"
+ android:layout_weight="1.0"
+ android:addStatesFromChildren="true"
+ android:background="@android:drawable/edit_text">
+
+ <EditText
+ android:id="@+id/embedded_text_editor"
+ android:layout_width="fill_parent"
+ android:layout_height="wrap_content"
+ android:autoText="true"
+ android:capitalize="sentences"
+ android:nextFocusRight="@+id/send_button"
+ android:hint="@string/type_to_compose_text_enter_to_send"
+ android:maxLines="4"
+ android:inputType="textShortMessage|textAutoCorrect|textCapSentences|textMultiLine"
+ android:imeOptions="actionSend|flagNoEnterAction"
+ android:background="@null"
+ android:maxLength="1000"
+ />
+
+ <TextView
+ android:id="@+id/text_counter"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:background="#88000000"
+ android:textColor="#ffffffff"
+ android:textSize="11sp"
+ android:textStyle="bold"
+ android:paddingLeft="3dip"
+ android:paddingRight="3dip"
+ android:layout_alignParentRight="true"
+ android:layout_alignParentTop="true"
+ android:visibility="gone"
+ />
+ </RelativeLayout>
+
+ <Button android:id="@+id/send_button"
+ android:layout_marginLeft="5dip"
+ android:layout_width="wrap_content"
+ android:layout_height="fill_parent"
+ style="?android:attr/buttonStyleSmall"
+ android:layout_gravity="center_vertical"
+ android:nextFocusLeft="@+id/embedded_text_editor"
+ android:text="@string/send"
+ />
+ </LinearLayout>
+ </LinearLayout>
+ </ScrollView>
+ </LinearLayout>
+</LinearLayout>
View
123 res/layout/confirm_rate_limit_activity.xml
@@ -0,0 +1,123 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+/*
+ * Copyright (C) 2008 Esmertec AG.
+ * Copyright (C) 2008 The Android Open Source Project
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+-->
+
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_width="fill_parent"
+ android:layout_height="wrap_content"
+ android:orientation="vertical">
+
+ <LinearLayout
+ android:layout_width="fill_parent"
+ android:layout_height="wrap_content"
+ android:orientation="vertical"
+ android:layout_marginLeft="14dip"
+ android:layout_marginRight="14dip">
+ <LinearLayout
+ android:layout_width="fill_parent"
+ android:layout_height="wrap_content"
+ android:orientation="horizontal"
+ android:gravity="center_vertical"
+ android:layout_marginTop="2dip"
+ android:layout_marginBottom="5dip"
+ android:layout_marginLeft="2dip"
+ android:layout_marginRight="5dip">
+ <ImageView
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:paddingLeft="10dip"
+ android:src="@android:drawable/ic_dialog_alert"/>
+ <TextView
+ style="?android:attr/textAppearanceLarge"
+ android:paddingLeft="10dip"
+ android:paddingTop="10dip"
+ android:paddingBottom="10dip"
+ android:layout_width="fill_parent"
+ android:layout_height="wrap_content"
+ android:gravity="center_vertical"
+ android:text="@string/rate_limit_surpassed" />
+ </LinearLayout>
+ <ImageView
+ android:layout_width="fill_parent"
+ android:layout_height="wrap_content"
+ android:src="@android:drawable/divider_horizontal_dark"/>
+ </LinearLayout>
+
+ <LinearLayout
+ android:layout_width="fill_parent"
+ android:layout_height="wrap_content"
+ android:layout_weight="1"
+ android:orientation="vertical"
+ android:layout_marginLeft="14dip"
+ android:layout_marginRight="14dip">
+ <TextView
+ style="?android:attr/textAppearanceMedium"
+ android:layout_width="fill_parent"
+ android:layout_height="wrap_content"
+ android:padding="5dip"
+ android:text="@string/confirm_rate_limit" />
+ </LinearLayout>
+
+ <LinearLayout android:id="@+id/buttonPanel"
+ android:layout_width="fill_parent"
+ android:layout_height="wrap_content"
+ android:layout_marginLeft="14dip"
+ android:layout_marginRight="14dip"
+ android:orientation="vertical" >
+
+ <LinearLayout
+ android:layout_width="fill_parent"
+ android:layout_height="1dip"
+ android:layout_marginBottom="2dip"
+ android:background="@android:drawable/divider_horizontal_bright"
+ android:orientation="vertical" />
+ <LinearLayout
+ android:layout_width="fill_parent"
+ android:layout_height="wrap_content"
+ android:orientation="horizontal" >
+ <LinearLayout
+ android:layout_weight="0.25"
+ android:layout_width="0dip"
+ android:layout_height="wrap_content"
+ android:orientation="horizontal"
+ android:visibility="gone" />
+ <Button android:id="@+id/btn_yes"
+ android:layout_width="0dip"
+ android:layout_gravity="left"
+ android:layout_weight="1"
+ android:maxLines="2"
+ android:layout_height="wrap_content"
+ android:text="@android:string/yes" />
+ <Button android:id="@+id/btn_no"
+ android:layout_width="0dip"
+ android:layout_gravity="right"
+ android:layout_weight="1"
+ android:maxLines="2"
+ android:layout_height="wrap_content"
+ android:text="@android:string/no">
+ </Button>
+ <LinearLayout
+ android:layout_width="0dip"
+ android:layout_weight="0.25"
+ android:layout_height="wrap_content"
+ android:orientation="horizontal"
+ android:visibility="gone" />
+ </LinearLayout>
+ </LinearLayout>
+</LinearLayout>
View
101 res/layout/conversation_header.xml
@@ -0,0 +1,101 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+/*
+ * Copyright (C) 2008 Esmertec AG.
+ * Copyright (C) 2008 The Android Open Source Project
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+-->
+
+<com.android.mms.ui.ConversationHeaderView xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_width="fill_parent"
+ android:layout_height="?android:attr/listPreferredItemHeight"
+ android:paddingRight="10dip" >
+
+ <ImageView android:id="@+id/unread_indicator"
+ android:layout_width="wrap_content"
+ android:layout_height="fill_parent"
+ android:layout_alignParentLeft="true"
+ android:visibility="invisible"
+ android:src="@drawable/ic_sms_unread_msg_indicator" />
+
+ <ImageView
+ android:id="@+id/presence"
+ android:visibility="gone"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_marginRight="5dip"
+ android:layout_alignParentRight="true"
+ android:layout_centerVertical="true"
+ android:paddingBottom="20dip"
+ />
+
+ <TextView android:id="@+id/from"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:textStyle="bold"
+ android:textAppearance="?android:attr/textAppearanceLarge"
+ android:singleLine="true"
+ android:layout_marginTop="5dip"
+ android:layout_marginLeft="5dip"
+ android:layout_marginRight="5dip"
+ android:layout_alignTop="@id/unread_indicator"
+ android:layout_toRightOf="@id/unread_indicator"
+ android:layout_toLeftOf="@id/presence"
+ android:layout_alignWithParentIfMissing="true"
+ android:ellipsize="marquee" />
+
+ <TextView android:id="@+id/date"
+ android:layout_marginTop="2dip"
+ android:layout_marginBottom="4dip"
+ android:layout_marginLeft="5dip"
+ android:layout_height="wrap_content"
+ android:layout_width="wrap_content"
+ android:textAppearance="?android:attr/textAppearanceMedium"
+ android:textColor="?android:attr/textColorSecondary"
+ android:singleLine="true"
+ android:layout_alignParentRight="true"
+ android:layout_alignParentBottom="true" />
+
+ <ImageView android:id="@+id/error"
+ android:layout_marginLeft="3dip"
+ android:layout_width="32dip"
+ android:layout_height="32dip"
+ android:visibility="invisible"
+ android:layout_toLeftOf="@id/date"
+ android:layout_alignBottom="@id/date"
+ android:src="@drawable/ic_list_alert_sms_failed" />
+
+ <ImageView android:id="@+id/attachment"
+ android:layout_marginLeft="3dip"
+ android:layout_width="32dip"
+ android:layout_height="32dip"
+ android:visibility="gone"
+ android:layout_toLeftOf="@id/error"
+ android:layout_alignBottom="@id/date"
+ android:src="@drawable/ic_attachment_universal_small" />
+
+ <TextView android:id="@+id/subject"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:textAppearance="?android:attr/textAppearanceSmall"
+ android:singleLine="true"
+ android:layout_marginLeft="5dip"
+ android:layout_marginBottom="5dip"
+ android:layout_alignBottom="@id/unread_indicator"
+ android:layout_toRightOf="@id/unread_indicator"
+ android:layout_toLeftOf="@id/date"
+ android:ellipsize="end" />
+
+</com.android.mms.ui.ConversationHeaderView>
View
26 res/layout/conversation_list_screen.xml
@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+/*
+ * Copyright (C) 2008 Esmertec AG.
+ * Copyright (C) 2008 The Android Open Source Project
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+-->
+
+<ListView android:id="@android:id/list" xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_width="fill_parent"
+ android:layout_height="fill_parent"
+ android:drawSelectorOnTop="false"
+ android:scrollbarStyle="insideOverlay"
+ android:fadingEdgeLength="16dip" />
View
32 res/layout/delivery_report_activity.xml
@@ -0,0 +1,32 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+/*
+ * Copyright (C) 2008 Esmertec AG.
+ * Copyright (C) 2008 The Android Open Source Project
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+-->
+
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_width="fill_parent"
+ android:layout_height="fill_parent"
+ android:layout_gravity="center">
+
+ <ListView android:id="@android:id/list"
+ android:layout_width="fill_parent"
+ android:layout_height="fill_parent"
+ android:drawSelectorOnTop="false"
+ android:divider="@android:drawable/divider_horizontal_bright"
+ android:fadingEdgeLength="16dip"/>
+</LinearLayout>
View
43 res/layout/delivery_report_header.xml
@@ -0,0 +1,43 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+/*
+ * Copyright (C) 2008 Esmertec AG.
+ * Copyright (C) 2008 The Android Open Source Project
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+-->
+
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:orientation="horizontal"
+ android:layout_width="fill_parent"
+ android:background="#ff888888"
+ android:layout_height="?android:attr/listPreferredItemHeight">
+
+ <ImageView android:id="@+id/icon"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_marginLeft="5dip"
+ android:layout_gravity="center_vertical"
+ android:src="@drawable/ic_mms_message_details" />
+
+ <TextView android:id="@+id/title"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_marginLeft="5dip"
+ android:layout_gravity="center_vertical"
+ android:textColor="#ffffffff"
+ android:textAppearance="?android:attr/textAppearanceLarge"
+ android:singleLine="true"
+ android:text="@string/delivery_header_title" />
+</LinearLayout>
View
71 res/layout/delivery_report_list_item.xml
@@ -0,0 +1,71 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+/*
+ * Copyright (C) 2008 Esmertec AG.
+ * Copyright (C) 2008 The Android Open Source Project
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+-->
+
+<com.android.mms.ui.DeliveryReportListItem xmlns:android="http://schemas.android.com/apk/res/android"
+ android:orientation="horizontal"
+ android:layout_width="fill_parent"
+ android:background="#ffffffff"
+ android:layout_height="?android:attr/listPreferredItemHeight">
+
+ <LinearLayout
+ android:orientation="vertical"
+ android:layout_width="wrap_content"
+ android:layout_height="fill_parent"
+ android:layout_marginLeft="5dip"
+ android:layout_gravity="center_vertical">
+
+ <TextView android:id="@+id/recipient"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:textColor="#ff000000"
+ android:textAppearance="?android:attr/textAppearanceLarge"
+ android:singleLine="true" />
+
+ <TextView android:id="@+id/status"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:textColor="#ff000000"
+ android:textAppearance="?android:attr/textAppearanceLarge"
+ android:singleLine="true" />
+ </LinearLayout>
+
+ <LinearLayout
+ android:orientation="vertical"
+ android:layout_width="fill_parent"
+ android:layout_height="fill_parent"
+ android:background="#ffffffff">
+
+ <LinearLayout
+ android:orientation="horizontal"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:background="#ffffffff"
+ android:layout_weight="1"
+ android:layout_gravity="right">
+
+ <ImageView android:id="@+id/icon"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_marginRight="5dip"
+ android:layout_gravity="center_vertical"/>
+ </LinearLayout>
+ </LinearLayout>
+
+</com.android.mms.ui.DeliveryReportListItem>
View
147 res/layout/edit_slide_activity.xml
@@ -0,0 +1,147 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+/*
+ * Copyright (C) 2008 Esmertec AG.
+ * Copyright (C) 2008 The Android Open Source Project
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+-->
+
+<com.android.mms.ui.BasicSlideEditorView
+ xmlns:android="http://schemas.android.com/apk/res/android"
+ android:id="@+id/slide_editor_view"
+ android:layout_width="fill_parent"
+ android:layout_height="fill_parent"
+ android:orientation="vertical">
+
+ <LinearLayout
+ android:layout_width="fill_parent"
+ android:layout_height="wrap_content"
+ android:layout_weight="1"
+ android:orientation="horizontal"
+ android:background="@android:drawable/editbox_background" >
+
+ <LinearLayout
+ android:layout_width="wrap_content"
+ android:layout_height="fill_parent"
+ android:layout_weight="1"
+ android:layout_marginTop="10dip"
+ android:layout_marginBottom="10dip"
+ android:layout_marginLeft="20dip"
+ android:layout_marginRight="20dip"
+ android:orientation="vertical" >
+
+ <ImageView android:id="@+id/image"
+ android:layout_width="fill_parent"
+ android:layout_height="fill_parent"
+ android:layout_weight="1"
+ android:background="@android:drawable/picture_frame" />
+
+ <LinearLayout android:id="@+id/audio"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:visibility="gone"
+ android:orientation="horizontal" >
+
+ <ImageView
+ android:src="@drawable/ic_mms_music"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content" />
+
+ <TextView android:id="@+id/audio_name"
+ android:singleLine="true"
+ android:layout_gravity="center_vertical"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content" />
+ </LinearLayout>
+ </LinearLayout>
+
+ <LinearLayout android:id="@+id/controler"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_gravity="center_vertical"
+ android:orientation="vertical">
+
+ <LinearLayout
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:orientation="horizontal">
+
+ <ImageButton android:id="@+id/pre_slide_button"
+ style="?android:attr/buttonStyleSmall"
+ android:layout_width="wrap_content"
+ android:layout_height="50dip"
+ android:src="@drawable/ic_maps_back" />
+
+ <ImageButton android:id="@+id/next_slide_button"
+ style="?android:attr/buttonStyleSmall"
+ android:layout_width="wrap_content"
+ android:layout_height="50dip"
+ android:paddingLeft="12dip"
+ android:src="@drawable/ic_maps_next" />
+ </LinearLayout>
+
+ <Button android:id="@+id/preview_button"
+ style="?android:attr/buttonStyleSmall"
+ android:layout_width="fill_parent"
+ android:layout_height="50dip"
+ android:text="@string/preview" />
+
+ <Button android:id="@+id/replace_image_button"
+ style="?android:attr/buttonStyleSmall"
+ android:layout_width="fill_parent"
+ android:layout_height="50dip"
+ android:text="@string/replace_image" />
+
+ <Button android:id="@+id/remove_slide_button"
+ style="?android:attr/buttonStyleSmall"
+ android:layout_width="fill_parent"
+ android:layout_height="50dip"
+ android:text="@string/remove_slide" />
+ </LinearLayout>
+ </LinearLayout>
+
+ <LinearLayout
+ android:orientation="horizontal"
+ android:layout_width="fill_parent"
+ android:layout_height="wrap_content"
+ android:paddingBottom="2dip"
+ android:gravity="bottom"
+ android:baselineAligned="false">
+
+ <EditText android:id="@+id/text_message"
+ android:layout_width="fill_parent"
+ android:layout_height="wrap_content"
+ android:layout_weight="1"
+ android:nextFocusRight="@+id/done_button"
+ android:textSize="15sp"
+ android:capitalize="sentences"
+ android:autoText="true"
+ android:paddingLeft="5dip"
+ android:paddingTop="5dip"
+ android:paddingRight="5dip"
+ android:paddingBottom="5dip"
+ android:hint="@string/type_to_compose_text_or_leave_blank"
+ android:maxLines="1" >
+ <requestFocus/>
+ </EditText>
+
+ <Button android:id="@+id/done_button"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:nextFocusLeft="@+id/text_message"
+ android:text="@string/done"
+ />
+ </LinearLayout>
+</com.android.mms.ui.BasicSlideEditorView>
View
63 res/layout/edit_slide_duration.xml
@@ -0,0 +1,63 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+/*
+ * Copyright (C) 2008 Esmertec AG.
+ * Copyright (C) 2008 The Android Open Source Project
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+-->
+
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:orientation="vertical"
+ android:gravity="center_horizontal">
+
+
+ <TextView android:id="@+id/label"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:paddingTop="5dip"
+ android:paddingBottom="10dip"
+ android:paddingLeft="5dip"
+ android:paddingRight="5dip"
+ android:singleLine="true"
+ android:layout_gravity="center_horizontal"/>
+
+ <LinearLayout
+ android:layout_width="fill_parent"
+ android:layout_height="wrap_content"
+ android:orientation="horizontal"
+ android:gravity="center_horizontal">
+
+ <EditText android:id="@+id/text"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:numeric="integer"
+ android:maxLength="4"
+ android:singleLine="true" />
+
+ <TextView
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:paddingLeft="10dip"
+ android:text="@string/secs" />
+ </LinearLayout>
+
+ <Button android:id="@+id/done"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:text="@string/done"
+ android:layout_gravity="center_horizontal"/>
+</LinearLayout>
View
63 res/layout/edit_slide_text.xml
@@ -0,0 +1,63 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+/*
+ * Copyright (C) 2008 Esmertec AG.
+ * Copyright (C) 2008 The Android Open Source Project
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+-->
+
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_width="fill_parent"
+ android:layout_height="fill_parent"
+ android:orientation="vertical">
+
+ <TextView android:id="@+id/label"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:textAppearance="?android:attr/textAppearanceMedium"
+ android:layout_gravity="center"
+ android:paddingTop="10dip"
+ android:paddingBottom="6dip"
+ android:paddingLeft="5dip" />
+
+ <RelativeLayout
+ android:layout_width="fill_parent"
+ android:layout_height="wrap_content"
+ android:layout_marginBottom="4dip"
+ android:layout_weight="1">
+
+ <EditText android:id="@+id/text"
+ android:layout_width="fill_parent"
+ android:layout_height="wrap_content"
+ android:layout_marginLeft="5dip"
+ android:layout_marginRight="5dip"
+ android:maxLines="4"
+ android:capitalize="sentences"
+ android:autoText="true"/>
+ </RelativeLayout>
+
+ <LinearLayout
+ android:background="#fff"
+ android:gravity="right"
+ android:layout_width="fill_parent"
+ android:layout_height="wrap_content">
+
+ <Button android:id="@+id/done"
+ android:layout_width="100dip"
+ android:layout_height="wrap_content"
+ android:layout_marginTop="4dip"
+ android:text="@string/done" />
+ </LinearLayout>
+</LinearLayout>
View
44 res/layout/icon_list_item.xml
@@ -0,0 +1,44 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+/*
+ * Copyright (C) 2008 Esmertec AG.
+ * Copyright (C) 2008 The Android Open Source Project
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.