summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher2/PagedView.java
diff options
context:
space:
mode:
authorMichael Jurka <mikejurka@google.com>2011-02-01 17:53:59 -0800
committerMichael Jurka <mikejurka@google.com>2011-02-02 22:51:29 -0800
commit8245a8685fc9f4802c9fa29a989854b2522fc588 (patch)
treec5e66168f9a0c311a61505ff879eecbe73a8fcea /src/com/android/launcher2/PagedView.java
parent98ed6bbec7ea8776c2a0b76429e47c2c7fc523e5 (diff)
downloadandroid_packages_apps_Trebuchet-8245a8685fc9f4802c9fa29a989854b2522fc588.tar.gz
android_packages_apps_Trebuchet-8245a8685fc9f4802c9fa29a989854b2522fc588.tar.bz2
android_packages_apps_Trebuchet-8245a8685fc9f4802c9fa29a989854b2522fc588.zip
Adding hardware layers to All Apps
- splitting up the "holo" outlines and the icons into separate views - enabling hardware layers on each of the views
Diffstat (limited to 'src/com/android/launcher2/PagedView.java')
-rw-r--r--src/com/android/launcher2/PagedView.java18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/com/android/launcher2/PagedView.java b/src/com/android/launcher2/PagedView.java
index 6138b868f..490417aca 100644
--- a/src/com/android/launcher2/PagedView.java
+++ b/src/com/android/launcher2/PagedView.java
@@ -1308,8 +1308,8 @@ public abstract class PagedView extends ViewGroup {
int lowerPageBound = getAssociatedLowerPageBound(page);
int upperPageBound = getAssociatedUpperPageBound(page);
for (int i = 0; i < count; ++i) {
- final ViewGroup layout = (ViewGroup) getChildAt(i);
- final int childCount = layout.getChildCount();
+ Page layout = (Page) getChildAt(i);
+ final int childCount = layout.getPageChildCount();
if (lowerPageBound <= i && i <= upperPageBound) {
if (mDirtyPageContent.get(i)) {
syncPageItems(i);
@@ -1317,7 +1317,7 @@ public abstract class PagedView extends ViewGroup {
}
} else {
if (childCount > 0) {
- layout.removeAllViews();
+ layout.removeAllViewsOnPage();
}
mDirtyPageContent.set(i, true);
}
@@ -1358,10 +1358,10 @@ public abstract class PagedView extends ViewGroup {
ArrayList<Checkable> checked = new ArrayList<Checkable>();
final int childCount = getChildCount();
for (int i = 0; i < childCount; ++i) {
- final ViewGroup layout = (ViewGroup) getChildAt(i);
- final int grandChildCount = layout.getChildCount();
+ Page layout = (Page) getChildAt(i);
+ final int grandChildCount = layout.getPageChildCount();
for (int j = 0; j < grandChildCount; ++j) {
- final View v = layout.getChildAt(j);
+ final View v = layout.getChildOnPageAt(j);
if (v instanceof Checkable && ((Checkable) v).isChecked()) {
checked.add((Checkable) v);
}
@@ -1378,10 +1378,10 @@ public abstract class PagedView extends ViewGroup {
if (mChoiceMode == CHOICE_MODE_SINGLE) {
final int childCount = getChildCount();
for (int i = 0; i < childCount; ++i) {
- final ViewGroup layout = (ViewGroup) getChildAt(i);
- final int grandChildCount = layout.getChildCount();
+ Page layout = (Page) getChildAt(i);
+ final int grandChildCount = layout.getPageChildCount();
for (int j = 0; j < grandChildCount; ++j) {
- final View v = layout.getChildAt(j);
+ final View v = layout.getChildOnPageAt(j);
if (v instanceof Checkable && ((Checkable) v).isChecked()) {
return (Checkable) v;
}