diff --git a/res/anim/paged_view_click_feedback.xml b/res/anim/paged_view_click_feedback.xml deleted file mode 100644 index eb7ecef15c..0000000000 --- a/res/anim/paged_view_click_feedback.xml +++ /dev/null @@ -1,24 +0,0 @@ - - - - diff --git a/res/drawable/button_bg.xml b/res/drawable/button_bg.xml deleted file mode 100644 index e7b1bcd5a0..0000000000 --- a/res/drawable/button_bg.xml +++ /dev/null @@ -1,21 +0,0 @@ - - - - - - - - diff --git a/res/layout-land/folder_icon.xml b/res/layout-land/folder_icon.xml index 4c92fcabab..808ff5e7b1 100644 --- a/res/layout-land/folder_icon.xml +++ b/res/layout-land/folder_icon.xml @@ -16,7 +16,6 @@ diff --git a/res/layout-port/folder_icon.xml b/res/layout-port/folder_icon.xml index 0df16b88cd..5ee1327a35 100644 --- a/res/layout-port/folder_icon.xml +++ b/res/layout-port/folder_icon.xml @@ -16,7 +16,6 @@ android:id="@+id/drag_layer" android:layout_width="match_parent" diff --git a/res/layout-sw600dp/market_button.xml b/res/layout-sw600dp/market_button.xml index 32527901b1..7eaeafac3c 100644 --- a/res/layout-sw600dp/market_button.xml +++ b/res/layout-sw600dp/market_button.xml @@ -15,7 +15,6 @@ --> @@ -63,7 +62,6 @@ android:layout_height="wrap_content" android:layout_alignParentRight="true" android:layout_alignParentTop="true" - android:layout_toLeftOf="@+id/all_apps_divider" android:paddingLeft="@dimen/toolbar_button_horizontal_padding" android:paddingRight="@dimen/toolbar_button_horizontal_padding" android:paddingTop="@dimen/all_apps_button_vertical_padding" @@ -73,4 +71,4 @@ android:focusable="true" android:clickable="true" android:contentDescription="@string/accessibility_all_apps_button" /> - \ No newline at end of file + diff --git a/res/layout/apps_customize_progressbar.xml b/res/layout/apps_customize_progressbar.xml index 6a8010f0a9..6aa90999cb 100644 --- a/res/layout/apps_customize_progressbar.xml +++ b/res/layout/apps_customize_progressbar.xml @@ -15,7 +15,6 @@ --> diff --git a/res/layout/scroll_indicator.xml b/res/layout/scroll_indicator.xml index 33eed8bc50..4ea312b6dd 100644 --- a/res/layout/scroll_indicator.xml +++ b/res/layout/scroll_indicator.xml @@ -15,8 +15,7 @@ --> \ No newline at end of file + android:src="@drawable/hotseat_scrubber_holo" /> diff --git a/res/layout/workspace_divider.xml b/res/layout/workspace_divider.xml index 257ea7c90c..c9cbca65e8 100644 --- a/res/layout/workspace_divider.xml +++ b/res/layout/workspace_divider.xml @@ -15,10 +15,9 @@ --> \ No newline at end of file + android:src="@drawable/hotseat_track_holo" /> diff --git a/res/values-land/dimens.xml b/res/values-land/dimens.xml index 6d0261f89c..b4ddc00587 100644 --- a/res/values-land/dimens.xml +++ b/res/values-land/dimens.xml @@ -69,10 +69,6 @@ 2 1 - - 8dp - 8dp - 58dp diff --git a/res/values-sw340dp-land/dimens.xml b/res/values-sw340dp-land/dimens.xml index b469ac08eb..ff2e237ace 100644 --- a/res/values-sw340dp-land/dimens.xml +++ b/res/values-sw340dp-land/dimens.xml @@ -30,10 +30,6 @@ 0dp 0dp - -1dp - -1dp - -1dp - -1dp 48dp diff --git a/res/values-sw600dp/dimens.xml b/res/values-sw600dp/dimens.xml index 81fe13bf2a..9c2046b4c5 100644 --- a/res/values-sw600dp/dimens.xml +++ b/res/values-sw600dp/dimens.xml @@ -62,11 +62,6 @@ 196dp 140dp - 8dip - - - 0dp diff --git a/res/values/config.xml b/res/values/config.xml index c56d59671a..45ab544722 100644 --- a/res/values/config.xml +++ b/res/values/config.xml @@ -5,21 +5,9 @@ 45 - - 150 - 200 - 100 300 80 - - 120 - 200 - 200 - 350 - 50 @@ -76,15 +64,6 @@ 80 250 - - 20 - 50 - - - 17 - 4 diff --git a/res/values/dimens.xml b/res/values/dimens.xml index c6dfb49af7..4ef4f4d724 100644 --- a/res/values/dimens.xml +++ b/res/values/dimens.xml @@ -70,7 +70,6 @@ 18dp 10dp 8dp - 120px 62dip @@ -82,21 +81,9 @@ 0dp 70dp - - 0dip - - - 30dip - 60dip - 14dp - - 8dip - 25dip diff --git a/src/com/android/launcher2/AppsCustomizeTabHost.java b/src/com/android/launcher2/AppsCustomizeTabHost.java index 152b215882..7108c9f535 100644 --- a/src/com/android/launcher2/AppsCustomizeTabHost.java +++ b/src/com/android/launcher2/AppsCustomizeTabHost.java @@ -55,10 +55,17 @@ public class AppsCustomizeTabHost extends TabHost implements LauncherTransitiona private boolean mInTransition; private boolean mTransitioningToWorkspace; private boolean mResetAfterTransition; + private Runnable mRelayoutAndMakeVisible; public AppsCustomizeTabHost(Context context, AttributeSet attrs) { super(context, attrs); mLayoutInflater = LayoutInflater.from(context); + mRelayoutAndMakeVisible = new Runnable() { + public void run() { + mTabs.requestLayout(); + mTabsContainer.setAlpha(1f); + } + }; } /** @@ -144,12 +151,7 @@ public class AppsCustomizeTabHost extends TabHost implements LauncherTransitiona if (contentWidth > 0 && mTabs.getLayoutParams().width != contentWidth) { // Set the width and show the tab bar mTabs.getLayoutParams().width = contentWidth; - post(new Runnable() { - public void run() { - mTabs.requestLayout(); - mTabsContainer.setAlpha(1f); - } - }); + post(mRelayoutAndMakeVisible); } } super.onMeasure(widthMeasureSpec, heightMeasureSpec); diff --git a/src/com/android/launcher2/DragView.java b/src/com/android/launcher2/DragView.java index 017d154f79..c3c274eca8 100644 --- a/src/com/android/launcher2/DragView.java +++ b/src/com/android/launcher2/DragView.java @@ -110,6 +110,7 @@ public class DragView extends View { // Force a measure, because Workspace uses getMeasuredHeight() before the layout pass int ms = View.MeasureSpec.makeMeasureSpec(0, View.MeasureSpec.UNSPECIFIED); measure(ms, ms); + mPaint = new Paint(Paint.FILTER_BITMAP_FLAG); } public float getOffsetY() { @@ -162,9 +163,6 @@ public class DragView extends View { p.setColor(0xaaffffff); canvas.drawRect(0, 0, getWidth(), getHeight(), p); } - if (mPaint == null) { - mPaint = new Paint(Paint.FILTER_BITMAP_FLAG); - } mHasDrawn = true; boolean crossFade = mCrossFadeProgress > 0 && mCrossFadeBitmap != null; @@ -203,6 +201,9 @@ public class DragView extends View { public void setPaint(Paint paint) { mPaint = paint; + if (mPaint == null) { + mPaint = new Paint(Paint.FILTER_BITMAP_FLAG); + } invalidate(); } @@ -213,9 +214,6 @@ public class DragView extends View { @Override public void setAlpha(float alpha) { super.setAlpha(alpha); - if (mPaint == null) { - mPaint = new Paint(Paint.FILTER_BITMAP_FLAG); - } mPaint.setAlpha((int) (255 * alpha)); invalidate(); }