diff options
author | Daniel Sandler <dsandler@google.com> | 2010-03-02 14:08:08 -0500 |
---|---|---|
committer | Daniel Sandler <dsandler@google.com> | 2010-03-03 14:38:45 -0500 |
commit | 388f679aa448cb648241b89fefa29614a2e3758b (patch) | |
tree | 0cf21b927dbe7d0f3b2a8417991cc9235b2acdd0 /res/layout/all_apps.xml | |
parent | 9f9077d2be9178e4dc7d99a6735d7db5c15885d1 (diff) | |
download | android_packages_apps_Trebuchet-388f679aa448cb648241b89fefa29614a2e3758b.tar.gz android_packages_apps_Trebuchet-388f679aa448cb648241b89fefa29614a2e3758b.tar.bz2 android_packages_apps_Trebuchet-388f679aa448cb648241b89fefa29614a2e3758b.zip |
Introduce 2D All Apps and other support for sapphire-class devices.
AllAppsView is now the 2D, GridView-based version (very
similar to classic Launcher); AllApps3D is the
RenderScript/Rollo implementation.
TODO:
- some mdpi assets are not in fact mdpi
- related to above: static wallpapers not working yet
- add dynamic selection of 2D/3D AA; currently you must
choose one at build time by picking the appropriate class
in all_apps.xml (see separate CL for sapphire overlay
that does this)
Change-Id: I253d98404ea8a329a4049d2e48edd2e5129fa6ba
Diffstat (limited to 'res/layout/all_apps.xml')
-rw-r--r-- | res/layout/all_apps.xml | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/res/layout/all_apps.xml b/res/layout/all_apps.xml new file mode 100644 index 000000000..7975df40a --- /dev/null +++ b/res/layout/all_apps.xml @@ -0,0 +1,33 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2010 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. +--> + +<!-- Replace with AllAppsView to use 2D version --> +<com.android.launcher2.AllApps3D + xmlns:android="http://schemas.android.com/apk/res/android" + + android:id="@+id/all_apps_view" + android:layout_width="match_parent" + android:layout_height="match_parent" + + android:scrollbarStyle="outsideInset" + android:drawSelectorOnTop="false" + android:listSelector="@drawable/grid_selector" + android:verticalSpacing="10dip" + android:numColumns="4" + android:fadingEdgeLength="20dip" + android:padding="2dip" + android:cacheColorHint="#FF000000" + /> |