diff options
author | Daniel Sandler <dsandler@android.com> | 2010-06-01 14:48:12 -0700 |
---|---|---|
committer | Daniel Sandler <dsandler@android.com> | 2010-06-03 10:35:44 -0700 |
commit | 86b40541a8f48287fed0663f1e6ac10610523d32 (patch) | |
tree | e408b11a173ef07231392bed57a0bd6a32dab7ca /res/layout | |
parent | 8802e960495e61803c18ea3dda2e30ef0a611d8f (diff) | |
download | android_packages_apps_Trebuchet-86b40541a8f48287fed0663f1e6ac10610523d32.tar.gz android_packages_apps_Trebuchet-86b40541a8f48287fed0663f1e6ac10610523d32.tar.bz2 android_packages_apps_Trebuchet-86b40541a8f48287fed0663f1e6ac10610523d32.zip |
Make 2D All Apps work better in landscape and on hdpi.
* Correct the density (or, rather, remove the density) of
the icons in the cache to ensure they're drawn px-for-px.
* Create a new landscape layout for 2DAA that aligns things
properly (viz: Home icon at right, padding tuned, 6
columns).
* Performance improvement: Make the app grid, icons, and
home icon all opaque (by setting a black background) and
move the home icon so it doesn't overlap the grid.
Change-Id: I961323e9e39cb122cdc694853706e7fcdd10142f
Diffstat (limited to 'res/layout')
-rw-r--r-- | res/layout/all_apps_2d.xml | 63 |
1 files changed, 0 insertions, 63 deletions
diff --git a/res/layout/all_apps_2d.xml b/res/layout/all_apps_2d.xml deleted file mode 100644 index 7bbfa91e7..000000000 --- a/res/layout/all_apps_2d.xml +++ /dev/null @@ -1,63 +0,0 @@ -<?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. ---> - -<!-- Sapphire gets 2D all apps view --> -<com.android.launcher2.AllApps2D - 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:padding="2dip" - > - - <GridView android:id="@+id/all_apps_2d_grid" - android:tag="all_apps_2d_grid" - android:scrollbars="none" - android:drawSelectorOnTop="false" - android:listSelector="@drawable/grid_selector" - android:verticalSpacing="10dip" - android:numColumns="4" - android:fadingEdgeLength="48dip" - android:cacheColorHint="#FF000000" - android:layout_width="match_parent" - android:layout_height="match_parent" - android:layout_alignParentBottom="true" - android:layout_marginBottom="28dip" - android:layout_marginTop="8dip" - android:nextFocusDown="@+id/all_apps_2d_home" - android:nextFocusUp="@null" - android:nextFocusLeft="@null" - android:nextFocusRight="@null" - /> - - <view - class="com.android.launcher2.AllApps2D$HomeButton" - android:id="@+id/all_apps_2d_home" - android:tag="all_apps_2d_home" - android:src="@drawable/home_button" - android:background="#00000000" - android:layout_centerHorizontal="true" - android:layout_alignParentBottom="true" - android:layout_width="wrap_content" - android:layout_height="@dimen/button_bar_height" - android:nextFocusUp="@+id/all_apps_2d_grid" - android:nextFocusDown="@null" - android:nextFocusLeft="@null" - android:nextFocusRight="@null" - /> - -</com.android.launcher2.AllApps2D> |