Merge "Visual changes to recent apps" into ics-mr0
This commit is contained in:
committed by
Android (Google) Code Review
commit
6d9d17fdd2
BIN
packages/SystemUI/res/drawable-hdpi/recents_thumbnail_bg.9.png
Normal file
BIN
packages/SystemUI/res/drawable-hdpi/recents_thumbnail_bg.9.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 462 B |
BIN
packages/SystemUI/res/drawable-mdpi/recents_thumbnail_bg.9.png
Normal file
BIN
packages/SystemUI/res/drawable-mdpi/recents_thumbnail_bg.9.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 354 B |
BIN
packages/SystemUI/res/drawable-xhdpi/recents_thumbnail_bg.9.png
Normal file
BIN
packages/SystemUI/res/drawable-xhdpi/recents_thumbnail_bg.9.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 636 B |
@ -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>
|
|
@ -16,5 +16,6 @@
|
|||||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
<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_selected="true" />
|
||||||
<item android:drawable="@drawable/recents_thumbnail_bg_press" android:state_pressed="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"/>
|
<item android:drawable="@*android:color/transparent"/>
|
||||||
</selector>
|
</selector>
|
||||||
|
@ -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>
|
27
packages/SystemUI/res/values-land/config.xml
Normal file
27
packages/SystemUI/res/values-land/config.xml
Normal file
@ -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>
|
||||||
|
|
27
packages/SystemUI/res/values-port/config.xml
Normal file
27
packages/SystemUI/res/values-port/config.xml
Normal file
@ -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>
|
||||||
|
|
@ -22,7 +22,7 @@
|
|||||||
<drawable name="notification_item_background_color_pressed">#ff257390</drawable>
|
<drawable name="notification_item_background_color_pressed">#ff257390</drawable>
|
||||||
<drawable name="ticker_background_color">#ff1d1d1d</drawable>
|
<drawable name="ticker_background_color">#ff1d1d1d</drawable>
|
||||||
<drawable name="status_bar_background">#ff000000</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>
|
<drawable name="status_bar_recents_app_thumbnail_background">#88000000</drawable>
|
||||||
<color name="status_bar_recents_app_label_color">#ffffffff</color>
|
<color name="status_bar_recents_app_label_color">#ffffffff</color>
|
||||||
<drawable name="status_bar_notification_row_background_color">#ff090909</drawable>
|
<drawable name="status_bar_notification_row_background_color">#ff090909</drawable>
|
||||||
|
@ -230,7 +230,7 @@ public class RecentsPanelView extends RelativeLayout
|
|||||||
|
|
||||||
public void handleShowBackground(boolean show) {
|
public void handleShowBackground(boolean show) {
|
||||||
if (show) {
|
if (show) {
|
||||||
mRecentsScrim.setBackgroundResource(R.drawable.status_bar_recents_background);
|
mRecentsScrim.setBackgroundResource(R.drawable.status_bar_recents_background_solid);
|
||||||
} else {
|
} else {
|
||||||
mRecentsScrim.setBackgroundDrawable(null);
|
mRecentsScrim.setBackgroundDrawable(null);
|
||||||
}
|
}
|
||||||
|
@ -83,7 +83,7 @@ public class RecentsScrollViewPerformanceHelper {
|
|||||||
mLinearLayout = layout;
|
mLinearLayout = layout;
|
||||||
mAttachedToWindow = true;
|
mAttachedToWindow = true;
|
||||||
mBackgroundDrawable = mContext.getResources()
|
mBackgroundDrawable = mContext.getResources()
|
||||||
.getDrawable(R.drawable.status_bar_recents_background).getConstantState();
|
.getDrawable(R.drawable.status_bar_recents_background_solid).getConstantState();
|
||||||
updateShowBackground();
|
updateShowBackground();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user