diff options
author | Daniel Sandler <dsandler@android.com> | 2010-01-29 06:22:33 -0800 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2010-01-29 06:22:33 -0800 |
commit | 77c292d83e70793dcb23677ab60a6c707fc613dd (patch) | |
tree | 0c65c432e70e048e0dbfdb2ded1ef55c3bbbe017 /core/res | |
parent | 784d53e79bab67e6b08b4bfc9a2dc75cfcba9772 (diff) | |
parent | b94f795c257e32a1d7be1115568b5b6f576dec37 (diff) | |
download | frameworks_base-77c292d83e70793dcb23677ab60a6c707fc613dd.zip frameworks_base-77c292d83e70793dcb23677ab60a6c707fc613dd.tar.gz frameworks_base-77c292d83e70793dcb23677ab60a6c707fc613dd.tar.bz2 |
Merge "New full-screen activity for USB mass storage interaction."
Diffstat (limited to 'core/res')
-rw-r--r-- | core/res/AndroidManifest.xml | 1 | ||||
-rw-r--r-- | core/res/res/drawable-hdpi/usb_android.png | bin | 0 -> 4924 bytes | |||
-rw-r--r-- | core/res/res/drawable-hdpi/usb_android_connected.png | bin | 0 -> 4734 bytes | |||
-rw-r--r-- | core/res/res/layout-land/usb_storage_activity.xml | 70 | ||||
-rw-r--r-- | core/res/res/layout/usb_storage_activity.xml | 61 | ||||
-rw-r--r-- | core/res/res/values/strings.xml | 22 |
6 files changed, 142 insertions, 12 deletions
diff --git a/core/res/AndroidManifest.xml b/core/res/AndroidManifest.xml index 54e15a5..665088a 100644 --- a/core/res/AndroidManifest.xml +++ b/core/res/AndroidManifest.xml @@ -1240,7 +1240,6 @@ </intent-filter> </activity> <activity android:name="com.android.internal.app.UsbStorageActivity" - android:theme="@style/Theme.Dialog.Alert" android:excludeFromRecents="true"> </activity> <activity android:name="com.android.internal.app.UsbStorageStopActivity" diff --git a/core/res/res/drawable-hdpi/usb_android.png b/core/res/res/drawable-hdpi/usb_android.png Binary files differnew file mode 100644 index 0000000..8153ec4 --- /dev/null +++ b/core/res/res/drawable-hdpi/usb_android.png diff --git a/core/res/res/drawable-hdpi/usb_android_connected.png b/core/res/res/drawable-hdpi/usb_android_connected.png Binary files differnew file mode 100644 index 0000000..6449b7c --- /dev/null +++ b/core/res/res/drawable-hdpi/usb_android_connected.png diff --git a/core/res/res/layout-land/usb_storage_activity.xml b/core/res/res/layout-land/usb_storage_activity.xml new file mode 100644 index 0000000..d714479 --- /dev/null +++ b/core/res/res/layout-land/usb_storage_activity.xml @@ -0,0 +1,70 @@ +<?xml version="1.0" encoding="utf-8"?> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:id="@+id/main" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:gravity="center" + android:padding="18dip" + android:orientation="horizontal" + > + + <ImageView android:id="@+id/icon" + android:layout_centerHorizontal="true" + android:layout_alignParentTop="true" + android:layout_height="wrap_content" + android:layout_width="0dip" + android:layout_weight="1" + android:src="@drawable/usb_android" /> + + <RelativeLayout + android:layout_height="wrap_content" + android:layout_width="0dip" + android:layout_weight="1" + > + + <TextView android:id="@+id/banner" + android:layout_centerHorizontal="true" + android:layout_below="@id/icon" + android:layout_marginTop="10dip" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:textSize="24sp" + android:gravity="center" + android:text="@string/usb_storage_title" /> + + <TextView android:id="@+id/message" + android:layout_below="@id/banner" + android:layout_marginTop="10dip" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:textSize="14sp" + android:gravity="center" + android:text="@string/usb_storage_message" /> + + <RelativeLayout + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_centerHorizontal="true" + android:layout_below="@id/message" + android:layout_marginTop="20dip" + > + + <Button android:id="@+id/mount_button" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:paddingLeft="18dip" + android:paddingRight="18dip" + android:text="@string/usb_storage_button_mount" + /> + <Button android:id="@+id/unmount_button" + android:visibility="gone" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:paddingLeft="18dip" + android:paddingRight="18dip" + android:text="@string/usb_storage_stop_button_mount" + /> + + </RelativeLayout> + </RelativeLayout> +</LinearLayout> diff --git a/core/res/res/layout/usb_storage_activity.xml b/core/res/res/layout/usb_storage_activity.xml new file mode 100644 index 0000000..86bfadb --- /dev/null +++ b/core/res/res/layout/usb_storage_activity.xml @@ -0,0 +1,61 @@ +<?xml version="1.0" encoding="utf-8"?> +<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:id="@+id/main" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:gravity="center" + android:padding="18dip" + > + + <ImageView android:id="@+id/icon" + android:layout_centerHorizontal="true" + android:layout_alignParentTop="true" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:src="@drawable/usb_android" /> + + <TextView android:id="@+id/banner" + android:layout_centerHorizontal="true" + android:layout_below="@id/icon" + android:layout_marginTop="10dip" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:textSize="24sp" + android:gravity="center" + android:text="@string/usb_storage_title" /> + + <TextView android:id="@+id/message" + android:layout_below="@id/banner" + android:layout_marginTop="10dip" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:textSize="14sp" + android:gravity="center" + android:text="@string/usb_storage_message" /> + + <RelativeLayout + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_centerHorizontal="true" + android:layout_below="@id/message" + android:layout_marginTop="20dip" + > + + <Button android:id="@+id/mount_button" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:paddingLeft="18dip" + android:paddingRight="18dip" + android:text="@string/usb_storage_button_mount" + /> + <Button android:id="@+id/unmount_button" + android:visibility="gone" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:paddingLeft="18dip" + android:paddingRight="18dip" + android:text="@string/usb_storage_stop_button_mount" + /> + + </RelativeLayout> +</RelativeLayout> diff --git a/core/res/res/values/strings.xml b/core/res/res/values/strings.xml index 42553d4..8f97c13 100644 --- a/core/res/res/values/strings.xml +++ b/core/res/res/values/strings.xml @@ -2008,21 +2008,23 @@ <string name="googlewebcontenthelper_loading">Loading\u2026</string> <!-- USB storage dialog strings --> - <!-- This is the label for the activity, and should never be visible to the user. --> + <!-- This is the title for the activity's window. --> + <string name="usb_storage_activity_title">USB Mass Storage</string> + <!-- See USB_STORAGE. USB_STORAGE_DIALOG: After the user selects the notification, a dialog is shown asking if he wants to mount. This is the title. --> <string name="usb_storage_title">USB connected</string> <!-- See USB_STORAGE. This is the message. --> - <string name="usb_storage_message">You have connected your phone to your computer via USB. Select \"Mount\" if you want to copy files between your computer and your phone\'s SD card.</string> + <string name="usb_storage_message">You have connected your phone to your computer via USB. Select the button below if you want to copy files between your computer and your Android\u2018s SD card.</string> <!-- See USB_STORAGE. This is the button text to mount the phone on the computer. --> - <string name="usb_storage_button_mount">Mount</string> - <!-- See USB_STORAGE. This is the button text to ignore the plugging in of the phone.. --> - <string name="usb_storage_button_unmount">Don\'t mount</string> + <string name="usb_storage_button_mount">Turn on USB storage</string> <!-- See USB_STORAGE_DIALOG. If there was an error mounting, this is the text. --> <string name="usb_storage_error_message">There is a problem using your SD card for USB storage.</string> <!-- USB_STORAGE: When the user connects the phone to a computer via USB, we show a notification asking if he wants to share files across. This is the title --> <string name="usb_storage_notification_title">USB connected</string> <!-- See USB_STORAGE. This is the message. --> <string name="usb_storage_notification_message">Select to copy files to/from your computer.</string> + + <!-- USB_STORAGE_STOP: While USB storage is enabled, we show a notification dialog asking if he wants to stop. This is the title --> <string name="usb_storage_stop_notification_title">Turn off USB storage</string> <!-- See USB_STORAGE. This is the message. --> @@ -2031,15 +2033,13 @@ <!-- USB storage stop dialog strings --> <!-- This is the label for the activity, and should never be visible to the user. --> <!-- See USB_STORAGE_STOP. USB_STORAGE_STOP_DIALOG: After the user selects the notification, a dialog is shown asking if he wants to stop usb storage. This is the title. --> - <string name="usb_storage_stop_title">Turn off USB storage</string> + <string name="usb_storage_stop_title">USB storage in use</string> <!-- See USB_STORAGE_STOP. This is the message. --> - <string name="usb_storage_stop_message">Before turning off USB storage, make sure you have unmounted on the USB host. Select \"Turn Off\" to turn off USB storage.</string> + <string name="usb_storage_stop_message">Before turning off USB storage, make sure you have unmounted (\u201cejected\u201d) your Android\u2018s SD card from your computer.</string> <!-- See USB_STORAGE_STOP. This is the button text to stop usb storage. --> - <string name="usb_storage_stop_button_mount">Turn Off</string> - <!-- See USB_STORAGE_STOP. This is the button text to cancel stoping usb storage. --> - <string name="usb_storage_stop_button_unmount">Cancel</string> + <string name="usb_storage_stop_button_mount">Turn off USB storage</string> <!-- See USB_STORAGE_STOP_DIALOG. If there was an error stopping, this is the text. --> - <string name="usb_storage_stop_error_message">We\'ve encountered a problem turning off USB storage. Check to make sure you have unmounted the USB host, then try again.</string> + <string name="usb_storage_stop_error_message">There was a problem turning off USB storage. Check to make sure you have unmounted the USB host, then try again.</string> <!-- External media format dialog strings --> <!-- This is the label for the activity, and should never be visible to the user. --> |