diff options
author | Jim Miller <jaggies@google.com> | 2010-08-20 19:25:39 -0700 |
---|---|---|
committer | Jim Miller <jaggies@google.com> | 2010-08-25 20:43:00 -0700 |
commit | e6ad1a8ba29bdd5d61ad1c91146def582c8c0334 (patch) | |
tree | 38f2fc4e2e1914d9e788022f44ec9e4cffa52e32 /core/res | |
parent | a0b436234d999a05b1ddb571dea3956ad5139a4c (diff) | |
download | frameworks_base-e6ad1a8ba29bdd5d61ad1c91146def582c8c0334.zip frameworks_base-e6ad1a8ba29bdd5d61ad1c91146def582c8c0334.tar.gz frameworks_base-e6ad1a8ba29bdd5d61ad1c91146def582c8c0334.tar.bz2 |
Fix 2797185: Integrate 3D RecentApps View into system.
This adds 3D recents to the platform. Enabling it is a
matter of setting 'config_enableRecentApps3D' on devices
capable of supporting it (those with OGLES2.0 at the moment).
Change-Id: Ife7bfe8ca02e7657821b68f915e31b0dab50cd2c
Diffstat (limited to 'core/res')
-rw-r--r-- | core/res/res/layout/recent_apps_activity.xml | 55 | ||||
-rw-r--r-- | core/res/res/values-xlarge/config.xml | 4 | ||||
-rw-r--r-- | core/res/res/values-xlarge/dimens.xml | 6 | ||||
-rw-r--r-- | core/res/res/values/config.xml | 3 |
4 files changed, 67 insertions, 1 deletions
diff --git a/core/res/res/layout/recent_apps_activity.xml b/core/res/res/layout/recent_apps_activity.xml new file mode 100644 index 0000000..d962339 --- /dev/null +++ b/core/res/res/layout/recent_apps_activity.xml @@ -0,0 +1,55 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- +/* +** Copyright 2008, 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. +*/ +--> + +<LinearLayout + xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:orientation="vertical"> + + <!-- Title --> + <TextView + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:gravity="center" + android:textAppearance="?android:attr/textAppearanceSmall" + android:textColor="#80FFFFFF" + android:textStyle="bold" + android:singleLine="true" + android:text="@android:string/recent_tasks_title" + android:visibility="gone"/> + + <!-- This is only intended to be visible when carousel is invisible --> + <TextView + android:id="@+id/no_applications_message" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="center" + android:textAppearance="?android:attr/textAppearanceSmall" + android:text="@android:string/no_recent_tasks" + android:visibility="gone"/> + + <com.android.internal.widget.CarouselView + android:id="@+id/carousel" + android:layout_width="match_parent" + android:layout_height="0dip" + android:layout_weight="1"> + </com.android.internal.widget.CarouselView> + +</LinearLayout> diff --git a/core/res/res/values-xlarge/config.xml b/core/res/res/values-xlarge/config.xml index e92ed11..7e5a27b 100644 --- a/core/res/res/values-xlarge/config.xml +++ b/core/res/res/values-xlarge/config.xml @@ -29,5 +29,9 @@ <bool name="config_enableSlidingTabFirst">false</bool> <!-- Enable lockscreen rotation --> <bool name="config_enableLockScreenRotation">true</bool> + + <!-- Enables 3d task switcher on xlarge device --> + <bool name="config_enableRecentApps3D">true</bool> + </resources> diff --git a/core/res/res/values-xlarge/dimens.xml b/core/res/res/values-xlarge/dimens.xml index 1a16da7..516fb5f 100644 --- a/core/res/res/values-xlarge/dimens.xml +++ b/core/res/res/values-xlarge/dimens.xml @@ -29,5 +29,9 @@ <dimen name="password_keyboard_key_height_alpha">0.35in</dimen> <!-- Default height of a key in the password keyboard for numeric --> <dimen name="password_keyboard_key_height_numeric">0.47in</dimen> -</resources> + <!-- The width that is used when creating thumbnails of applications. --> + <dimen name="thumbnail_width">256dp</dimen> + <!-- The height that is used when creating thumbnails of applications. --> + <dimen name="thumbnail_height">255dp</dimen> +</resources> diff --git a/core/res/res/values/config.xml b/core/res/res/values/config.xml index 3e3f47c..a071cac 100644 --- a/core/res/res/values/config.xml +++ b/core/res/res/values/config.xml @@ -299,6 +299,9 @@ <!-- Diable lockscreen rotation by default --> <bool name="config_enableLockScreenRotation">false</bool> + <!-- Enable 3D RecentApplications view --> + <bool name="config_enableRecentApps3D">false</bool> + <!-- Array of light sensor LUX values to define our levels for auto backlight brightness support. The N entries of this array define N + 1 zones as follows: |