diff options
author | Winson Chung <winsonc@google.com> | 2011-07-11 15:20:48 -0700 |
---|---|---|
committer | Winson Chung <winsonc@google.com> | 2011-07-12 16:04:46 -0700 |
commit | a62e9fd95ae10cff4676f2cc1f4d68334ca27a0b (patch) | |
tree | db42f288a740bbaaf689f070e0aff66367be10de /res | |
parent | fe63476a2d0b12dfc692c425d1c6cdbb41774ef0 (diff) | |
download | android_packages_apps_Trebuchet-a62e9fd95ae10cff4676f2cc1f4d68334ca27a0b.tar.gz android_packages_apps_Trebuchet-a62e9fd95ae10cff4676f2cc1f4d68334ca27a0b.tar.bz2 android_packages_apps_Trebuchet-a62e9fd95ae10cff4676f2cc1f4d68334ca27a0b.zip |
Cleaning up some drop-target issues.
- Setting text color during drag over transitions
- Fixing regression in drop target padding
= Using old drop-down animation where possible
Change-Id: Ia1c5ec9e58fc734d28133349d9920d123ed71ae6
Diffstat (limited to 'res')
-rw-r--r-- | res/layout/qsb_bar.xml | 2 | ||||
-rw-r--r-- | res/values-land/config.xml | 5 | ||||
-rw-r--r-- | res/values-large-land/dimens.xml | 2 | ||||
-rw-r--r-- | res/values-large/config.xml | 3 | ||||
-rw-r--r-- | res/values-large/dimens.xml | 4 | ||||
-rw-r--r-- | res/values/config.xml | 4 | ||||
-rw-r--r-- | res/values/dimens.xml | 3 |
7 files changed, 17 insertions, 6 deletions
diff --git a/res/layout/qsb_bar.xml b/res/layout/qsb_bar.xml index b5b563b59..abcc941f3 100644 --- a/res/layout/qsb_bar.xml +++ b/res/layout/qsb_bar.xml @@ -26,7 +26,7 @@ <LinearLayout style="@style/SearchDropTargetBar" android:id="@+id/drag_target_bar" - android:alpha="0"> + android:visibility="gone"> <com.android.launcher2.DeleteDropTarget style="@style/DropTargetButtonContainer" diff --git a/res/values-land/config.xml b/res/values-land/config.xml new file mode 100644 index 000000000..adbc015b5 --- /dev/null +++ b/res/values-land/config.xml @@ -0,0 +1,5 @@ +<resources> +<!-- Workspace --> + <!-- Whether or not the drop targets drop down as opposed to fade in --> + <bool name="config_useDropTargetDownTransition">false</bool> +</resources> diff --git a/res/values-large-land/dimens.xml b/res/values-large-land/dimens.xml index d14a8dfd0..12fc8b309 100644 --- a/res/values-large-land/dimens.xml +++ b/res/values-large-land/dimens.xml @@ -34,4 +34,4 @@ <dimen name="apps_customize_pageLayoutPaddingBottom">14dp</dimen> <dimen name="apps_customize_pageLayoutPaddingLeft">40dp</dimen> <dimen name="apps_customize_pageLayoutPaddingRight">40dp</dimen> -</resources>
\ No newline at end of file +</resources> diff --git a/res/values-large/config.xml b/res/values-large/config.xml index 2a5266415..34dbb0fe9 100644 --- a/res/values-large/config.xml +++ b/res/values-large/config.xml @@ -18,6 +18,9 @@ <integer name="config_customizeWorkspaceShrinkTime">800</integer> <!-- Workspace --> + <!-- Whether or not the drop targets drop down as opposed to fade in --> + <bool name="config_useDropTargetDownTransition">true</bool> + <!-- When dragging items on the workspace, how much bigger (in pixels) the dragged view should be, as compared to the original view. If 0, it will not be scaled at all. Should be an even number, for pixel alignment. --> diff --git a/res/values-large/dimens.xml b/res/values-large/dimens.xml index 59aaa417d..05ec9c8f8 100644 --- a/res/values-large/dimens.xml +++ b/res/values-large/dimens.xml @@ -56,10 +56,6 @@ <dimen name="all_apps_button_drawable_padding">0dip</dimen> <dimen name="all_apps_button_vertical_padding">4dip</dimen> - <!-- height & width of the drop rectangle for the trash icon --> - <dimen name="delete_zone_vertical_drag_padding">20dip</dimen> - <dimen name="delete_zone_horizontal_drag_padding">20dip</dimen> - <!-- roughly a status bar (for determining how many rows of icons are in home) --> <dimen name="status_bar_height">48dip</dimen> diff --git a/res/values/config.xml b/res/values/config.xml index fca0acce0..7a452114d 100644 --- a/res/values/config.xml +++ b/res/values/config.xml @@ -1,5 +1,6 @@ <resources> <bool name="config_hardwareAccelerated">true</bool> + <!-- AllApps/Customize/AppsCustomize --> <!-- The alpha of the AppsCustomize bg in spring loaded mode --> <integer name="config_appsCustomizeSpringLoadedBgAlpha">45</integer> @@ -46,6 +47,9 @@ <integer name="config_allAppsBatchSize">0</integer> <!-- Workspace --> + <!-- Whether or not the drop targets drop down as opposed to fade in --> + <bool name="config_useDropTargetDownTransition">true</bool> + <!-- The transition duration for the background of the drop targets --> <integer name="config_dropTargetBgTransitionDuration">100</integer> diff --git a/res/values/dimens.xml b/res/values/dimens.xml index c04dd8e06..08a2c76a4 100644 --- a/res/values/dimens.xml +++ b/res/values/dimens.xml @@ -43,6 +43,9 @@ <!-- height of the bottom row of controls --> <dimen name="button_bar_height">56dip</dimen> + <!-- Drag padding to add to the drop targets --> + <dimen name="drop_target_drag_padding">20dp</dimen> + <!-- so we have access to this dimension in landscape mode even though button_bar_height changes --> <dimen name="button_bar_height_portrait">56dip</dimen> |