diff options
| -rw-r--r-- | packages/SystemUI/res/drawable-hdpi/recents_thumbnail_bg.9.png | bin | 0 -> 462 bytes | |||
| -rw-r--r-- | packages/SystemUI/res/drawable-mdpi/recents_thumbnail_bg.9.png | bin | 0 -> 354 bytes | |||
| -rw-r--r-- | packages/SystemUI/res/drawable-xhdpi/recents_thumbnail_bg.9.png | bin | 0 -> 636 bytes | |||
| -rw-r--r-- | packages/SystemUI/res/drawable/recents_thumbnail_bg.xml | 19 | ||||
| -rw-r--r-- | packages/SystemUI/res/drawable/recents_thumbnail_fg.xml | 1 | ||||
| -rw-r--r-- | packages/SystemUI/res/drawable/status_bar_recents_background.xml | 25 | ||||
| -rw-r--r-- | packages/SystemUI/res/values-land/config.xml | 27 | ||||
| -rw-r--r-- | packages/SystemUI/res/values-port/config.xml | 27 | ||||
| -rw-r--r-- | packages/SystemUI/res/values/colors.xml | 2 | ||||
| -rw-r--r-- | packages/SystemUI/src/com/android/systemui/recent/RecentsPanelView.java | 2 | ||||
| -rw-r--r-- | packages/SystemUI/src/com/android/systemui/recent/RecentsScrollViewPerformanceHelper.java | 2 |
11 files changed, 83 insertions, 22 deletions
diff --git a/packages/SystemUI/res/drawable-hdpi/recents_thumbnail_bg.9.png b/packages/SystemUI/res/drawable-hdpi/recents_thumbnail_bg.9.png Binary files differnew file mode 100644 index 000000000000..d000f7e314ca --- /dev/null +++ b/packages/SystemUI/res/drawable-hdpi/recents_thumbnail_bg.9.png diff --git a/packages/SystemUI/res/drawable-mdpi/recents_thumbnail_bg.9.png b/packages/SystemUI/res/drawable-mdpi/recents_thumbnail_bg.9.png Binary files differnew file mode 100644 index 000000000000..f19dc9387223 --- /dev/null +++ b/packages/SystemUI/res/drawable-mdpi/recents_thumbnail_bg.9.png diff --git a/packages/SystemUI/res/drawable-xhdpi/recents_thumbnail_bg.9.png b/packages/SystemUI/res/drawable-xhdpi/recents_thumbnail_bg.9.png Binary files differnew file mode 100644 index 000000000000..80fc8499cee9 --- /dev/null +++ b/packages/SystemUI/res/drawable-xhdpi/recents_thumbnail_bg.9.png diff --git a/packages/SystemUI/res/drawable/recents_thumbnail_bg.xml b/packages/SystemUI/res/drawable/recents_thumbnail_bg.xml deleted file mode 100644 index 320ed402460a..000000000000 --- a/packages/SystemUI/res/drawable/recents_thumbnail_bg.xml +++ /dev/null @@ -1,19 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- Copyright (C) 2011 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:drawable="@drawable/recents_thumbnail_bg_dragging" android:state_activated="true" /> - <item android:drawable="@*android:color/transparent"/> -</selector> diff --git a/packages/SystemUI/res/drawable/recents_thumbnail_fg.xml b/packages/SystemUI/res/drawable/recents_thumbnail_fg.xml index d683af95900c..70330779ccfe 100644 --- a/packages/SystemUI/res/drawable/recents_thumbnail_fg.xml +++ b/packages/SystemUI/res/drawable/recents_thumbnail_fg.xml @@ -16,5 +16,6 @@ <selector xmlns:android="http://schemas.android.com/apk/res/android"> <item android:drawable="@drawable/recents_thumbnail_bg_press" android:state_selected="true" /> <item android:drawable="@drawable/recents_thumbnail_bg_press" android:state_pressed="true" /> + <item android:drawable="@drawable/recents_thumbnail_bg_dragging" android:state_activated="true" /> <item android:drawable="@*android:color/transparent"/> </selector> diff --git a/packages/SystemUI/res/drawable/status_bar_recents_background.xml b/packages/SystemUI/res/drawable/status_bar_recents_background.xml new file mode 100644 index 000000000000..8b22bf160407 --- /dev/null +++ b/packages/SystemUI/res/drawable/status_bar_recents_background.xml @@ -0,0 +1,25 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- +/* + * Copyright 2011, 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. + */ +--> +<shape xmlns:android="http://schemas.android.com/apk/res/android"> + <gradient name="status_bar_recents_background" + android:startColor="#cc000000" + android:endColor="#66000000" + android:angle="@integer/status_bar_recents_bg_gradient_degrees" + /> +</shape> diff --git a/packages/SystemUI/res/values-land/config.xml b/packages/SystemUI/res/values-land/config.xml new file mode 100644 index 000000000000..bbae18d27318 --- /dev/null +++ b/packages/SystemUI/res/values-land/config.xml @@ -0,0 +1,27 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- +/* +** Copyright 2011, 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. +*/ +--> + +<!-- These resources are around just to allow their values to be customized + for different hardware and product builds. --> +<resources> + <!-- Whether we're using the tablet-optimized recents interface (we use this + value at runtime for some things) --> + <integer name="status_bar_recents_bg_gradient_degrees">90</integer> +</resources> + diff --git a/packages/SystemUI/res/values-port/config.xml b/packages/SystemUI/res/values-port/config.xml new file mode 100644 index 000000000000..bbae18d27318 --- /dev/null +++ b/packages/SystemUI/res/values-port/config.xml @@ -0,0 +1,27 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- +/* +** Copyright 2011, 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. +*/ +--> + +<!-- These resources are around just to allow their values to be customized + for different hardware and product builds. --> +<resources> + <!-- Whether we're using the tablet-optimized recents interface (we use this + value at runtime for some things) --> + <integer name="status_bar_recents_bg_gradient_degrees">90</integer> +</resources> + diff --git a/packages/SystemUI/res/values/colors.xml b/packages/SystemUI/res/values/colors.xml index c88d65134b50..3141020761e3 100644 --- a/packages/SystemUI/res/values/colors.xml +++ b/packages/SystemUI/res/values/colors.xml @@ -22,7 +22,7 @@ <drawable name="notification_item_background_color_pressed">#ff257390</drawable> <drawable name="ticker_background_color">#ff1d1d1d</drawable> <drawable name="status_bar_background">#ff000000</drawable> - <drawable name="status_bar_recents_background">#b3000000</drawable> + <drawable name="status_bar_recents_background_solid">#b3000000</drawable> <drawable name="status_bar_recents_app_thumbnail_background">#88000000</drawable> <color name="status_bar_recents_app_label_color">#ffffffff</color> <drawable name="status_bar_notification_row_background_color">#ff090909</drawable> diff --git a/packages/SystemUI/src/com/android/systemui/recent/RecentsPanelView.java b/packages/SystemUI/src/com/android/systemui/recent/RecentsPanelView.java index 8d5c33f8beb1..bd1fcfc84ad0 100644 --- a/packages/SystemUI/src/com/android/systemui/recent/RecentsPanelView.java +++ b/packages/SystemUI/src/com/android/systemui/recent/RecentsPanelView.java @@ -230,7 +230,7 @@ public class RecentsPanelView extends RelativeLayout public void handleShowBackground(boolean show) { if (show) { - mRecentsScrim.setBackgroundResource(R.drawable.status_bar_recents_background); + mRecentsScrim.setBackgroundResource(R.drawable.status_bar_recents_background_solid); } else { mRecentsScrim.setBackgroundDrawable(null); } diff --git a/packages/SystemUI/src/com/android/systemui/recent/RecentsScrollViewPerformanceHelper.java b/packages/SystemUI/src/com/android/systemui/recent/RecentsScrollViewPerformanceHelper.java index b7e656ea47f4..813099adb076 100644 --- a/packages/SystemUI/src/com/android/systemui/recent/RecentsScrollViewPerformanceHelper.java +++ b/packages/SystemUI/src/com/android/systemui/recent/RecentsScrollViewPerformanceHelper.java @@ -83,7 +83,7 @@ public class RecentsScrollViewPerformanceHelper { mLinearLayout = layout; mAttachedToWindow = true; mBackgroundDrawable = mContext.getResources() - .getDrawable(R.drawable.status_bar_recents_background).getConstantState(); + .getDrawable(R.drawable.status_bar_recents_background_solid).getConstantState(); updateShowBackground(); } |