diff options
author | Patrick Dubroy <dubroy@google.com> | 2010-09-06 11:03:37 -0700 |
---|---|---|
committer | Patrick Dubroy <dubroy@google.com> | 2010-09-06 17:37:35 -0700 |
commit | 9f7aec8d4317d0407a41e12f236c962b225cb4c3 (patch) | |
tree | 345278548fa028325acdec41a8f4513b29df47df /res | |
parent | 39670182be72e981cc7c26d9099f6e9636d27411 (diff) | |
download | android_packages_apps_Trebuchet-9f7aec8d4317d0407a41e12f236c962b225cb4c3.tar.gz android_packages_apps_Trebuchet-9f7aec8d4317d0407a41e12f236c962b225cb4c3.tar.bz2 android_packages_apps_Trebuchet-9f7aec8d4317d0407a41e12f236c962b225cb4c3.zip |
Implement selection mode for All Apps with delete and info actions.
Diffstat (limited to 'res')
-rw-r--r-- | res/drawable-xlarge/info_button.png | bin | 2591 -> 2315 bytes | |||
-rw-r--r-- | res/drawable-xlarge/trashcan.png | bin | 3087 -> 2516 bytes | |||
-rw-r--r-- | res/drawable-xlarge/trashcan_hover.png | bin | 4892 -> 3582 bytes | |||
-rw-r--r-- | res/layout-xlarge/all_apps_tabbed.xml | 3 | ||||
-rw-r--r-- | res/layout-xlarge/launcher.xml | 18 | ||||
-rw-r--r-- | res/values-xlarge/styles.xml | 5 | ||||
-rw-r--r-- | res/values/strings.xml | 11 | ||||
-rw-r--r-- | res/values/styles.xml | 5 |
8 files changed, 31 insertions, 11 deletions
diff --git a/res/drawable-xlarge/info_button.png b/res/drawable-xlarge/info_button.png Binary files differindex e3b27f426..253cdf74b 100644 --- a/res/drawable-xlarge/info_button.png +++ b/res/drawable-xlarge/info_button.png diff --git a/res/drawable-xlarge/trashcan.png b/res/drawable-xlarge/trashcan.png Binary files differindex 284543c8f..22134b4cb 100644 --- a/res/drawable-xlarge/trashcan.png +++ b/res/drawable-xlarge/trashcan.png diff --git a/res/drawable-xlarge/trashcan_hover.png b/res/drawable-xlarge/trashcan_hover.png Binary files differindex 38695cdd2..3ac6922a7 100644 --- a/res/drawable-xlarge/trashcan_hover.png +++ b/res/drawable-xlarge/trashcan_hover.png diff --git a/res/layout-xlarge/all_apps_tabbed.xml b/res/layout-xlarge/all_apps_tabbed.xml index dbe192ce5..5a4336118 100644 --- a/res/layout-xlarge/all_apps_tabbed.xml +++ b/res/layout-xlarge/all_apps_tabbed.xml @@ -15,7 +15,8 @@ --> <com.android.launcher2.AllAppsTabbed xmlns:android="http://schemas.android.com/apk/res/android" - android:background="#30000000"> + android:background="#30000000" + android:paddingTop="?android:attr/windowActionBarSize"> <LinearLayout android:orientation="vertical" android:layout_width="match_parent" diff --git a/res/layout-xlarge/launcher.xml b/res/layout-xlarge/launcher.xml index 3b39fd150..7018b3e56 100644 --- a/res/layout-xlarge/launcher.xml +++ b/res/layout-xlarge/launcher.xml @@ -34,6 +34,7 @@ android:id="@+id/workspace" android:layout_width="match_parent" android:layout_height="match_parent" + android:paddingTop="?android:attr/windowActionBarSize" launcher:defaultScreen="2" launcher:cellCountX="8" launcher:cellCountY="7"> @@ -48,15 +49,14 @@ <RelativeLayout android:id="@+id/all_apps_button_cluster" android:layout_width="fill_parent" - android:layout_height="wrap_content" - android:layout_gravity="top" - android:padding="@dimen/toolbar_padding"> + android:layout_height="?android:attr/windowActionBarSize" + android:layout_gravity="top"> <ImageView android:id="@+id/search_button" android:src="@drawable/search_button" android:layout_width="wrap_content" - android:layout_height="wrap_content" + android:layout_height="match_parent" android:layout_gravity="left" android:onClick="onClickSearchButton" @@ -67,7 +67,7 @@ android:id="@+id/all_apps_button" android:src="@drawable/all_apps_button" android:layout_width="wrap_content" - android:layout_height="wrap_content" + android:layout_height="match_parent" android:layout_alignParentRight="true" android:layout_marginLeft="@dimen/toolbar_button_spacing" @@ -80,7 +80,7 @@ <ImageView android:id="@+id/market_button" android:layout_width="wrap_content" - android:layout_height="wrap_content" + android:layout_height="match_parent" android:layout_alignLeft="@id/all_apps_button" android:onClick="onClickAppMarketButton" @@ -92,7 +92,7 @@ android:id="@+id/configure_button" android:src="@drawable/configure_button" android:layout_width="wrap_content" - android:layout_height="wrap_content" + android:layout_height="match_parent" android:layout_toLeftOf="@id/all_apps_button" android:layout_marginLeft="@dimen/toolbar_button_spacing" @@ -104,7 +104,7 @@ android:id="@+id/delete_zone" android:src="@drawable/delete_zone_selector" android:layout_width="wrap_content" - android:layout_height="wrap_content" + android:layout_height="match_parent" android:layout_alignLeft="@id/all_apps_button" android:visibility="gone" @@ -114,7 +114,7 @@ android:id="@+id/info_button" android:src="@drawable/info_button" android:layout_width="wrap_content" - android:layout_height="wrap_content" + android:layout_height="match_parent" android:layout_alignLeft="@id/configure_button" android:visibility="gone" diff --git a/res/values-xlarge/styles.xml b/res/values-xlarge/styles.xml index e4c047f99..637b6ce7a 100644 --- a/res/values-xlarge/styles.xml +++ b/res/values-xlarge/styles.xml @@ -18,6 +18,11 @@ --> <resources> + <style name="Theme" parent="Theme.Base"> + <item name="android:windowNoTitle">true</item> + <item name="android:windowActionModeOverlay">true</item> + </style> + <style name="WorkspaceIcon.Portrait"> <item name="android:drawablePadding">4dip</item> <item name="android:paddingTop">1dip</item> diff --git a/res/values/strings.xml b/res/values/strings.xml index 392584cda..a009863da 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -133,6 +133,17 @@ <!-- Noun, menu item used to show the system settings --> <string name="menu_settings">Settings</string> + <!-- Strings for the contextual action bar (CAB) in All Apps --> + <skip /> + <!-- Describes the button for uninstalling the currently selected application. + Text is not displayed, but provided for accessibility. [CHAR_LIMIT=none] --> + <string name="cab_menu_delete_app">Uninstall application</string> + <!-- Describes the button for getting details/info about currently selected application. + Text is not displayed, but provided for accessibility. [CHAR_LIMIT=none] --> + <string name="cab_menu_app_info">Application details</string> + <!-- Appears in the CAB when an app is selected in All Apps. [CHAR_LIMIT=50] --> + <string name="cab_selection_text">1 application selected</string> + <!-- Permissions: --> <skip /> <!-- Permission short label --> diff --git a/res/values/styles.xml b/res/values/styles.xml index c2082111c..a97b3c50b 100644 --- a/res/values/styles.xml +++ b/res/values/styles.xml @@ -18,7 +18,10 @@ --> <resources> - <style name="Theme" parent="android:Theme.Wallpaper"> + <style name="Theme.Base" parent="android:Theme.Wallpaper"> + </style> + + <style name="Theme" parent="Theme.Base"> <item name="android:windowNoTitle">true</item> </style> |