summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/AppsCustomizeTabHost.java
diff options
context:
space:
mode:
authorWinson Chung <winsonc@google.com>2013-09-24 20:29:34 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2013-09-24 20:29:34 +0000
commit21f9f2a74795d88140794f3f64a26aed71ea1418 (patch)
tree65e10470eb1569e6321c654049ee45c1cb6f4a80 /src/com/android/launcher3/AppsCustomizeTabHost.java
parent9af86a07b1d1a4a870ba641b757c56afd0f04db4 (diff)
parent2d75f125f4e8bb5358dfdb63096d0493488ac2e5 (diff)
downloadandroid_packages_apps_Trebuchet-21f9f2a74795d88140794f3f64a26aed71ea1418.tar.gz
android_packages_apps_Trebuchet-21f9f2a74795d88140794f3f64a26aed71ea1418.tar.bz2
android_packages_apps_Trebuchet-21f9f2a74795d88140794f3f64a26aed71ea1418.zip
Merge "Tweaking styles for AllApps and widgets spaces. (Bug 10843502)" into jb-ub-now-indigo-rose
Diffstat (limited to 'src/com/android/launcher3/AppsCustomizeTabHost.java')
-rw-r--r--src/com/android/launcher3/AppsCustomizeTabHost.java11
1 files changed, 4 insertions, 7 deletions
diff --git a/src/com/android/launcher3/AppsCustomizeTabHost.java b/src/com/android/launcher3/AppsCustomizeTabHost.java
index 89e74b218..23feda3f9 100644
--- a/src/com/android/launcher3/AppsCustomizeTabHost.java
+++ b/src/com/android/launcher3/AppsCustomizeTabHost.java
@@ -22,6 +22,7 @@ import android.animation.AnimatorSet;
import android.animation.ObjectAnimator;
import android.content.Context;
import android.content.res.Resources;
+import android.graphics.Color;
import android.graphics.Rect;
import android.util.AttributeSet;
import android.view.LayoutInflater;
@@ -81,13 +82,6 @@ public class AppsCustomizeTabHost extends TabHost implements LauncherTransitiona
setOnTabChangedListener(this);
}
- void selectAppsTab() {
- setContentTypeImmediate(AppsCustomizePagedView.ContentType.Applications);
- }
- void selectWidgetsTab() {
- setContentTypeImmediate(AppsCustomizePagedView.ContentType.Widgets);
- }
-
@Override
public void setInsets(Rect insets) {
mInsets.set(insets);
@@ -203,6 +197,9 @@ public class AppsCustomizeTabHost extends TabHost implements LauncherTransitiona
}
private void onTabChangedEnd(AppsCustomizePagedView.ContentType type) {
+ int bgAlpha = (int) (255 * (getResources().getInteger(
+ R.integer.config_appsCustomizeSpringLoadedBgAlpha) / 100f));
+ setBackgroundColor(Color.argb(bgAlpha, 0, 0, 0));
mAppsCustomizePane.setContentType(type);
}