summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/Hotseat.java
diff options
context:
space:
mode:
authorTony Wickham <twickham@google.com>2015-09-23 18:37:57 -0700
committerTony Wickham <twickham@google.com>2015-10-08 09:23:10 -0700
commitd6b4037b093445fefa7d036da339dd549fae7a9b (patch)
tree6a527ffee467c5d53fb3364a5243379894aa9bb2 /src/com/android/launcher3/Hotseat.java
parent53d3be63a5ab056280279bcb13089faae0e7796f (diff)
downloadandroid_packages_apps_Trebuchet-d6b4037b093445fefa7d036da339dd549fae7a9b.tar.gz
android_packages_apps_Trebuchet-d6b4037b093445fefa7d036da339dd549fae7a9b.tar.bz2
android_packages_apps_Trebuchet-d6b4037b093445fefa7d036da339dd549fae7a9b.zip
Grid adjustments, specifically for Ryu.
> Less than 14% of the screen is used for left/right workspace padding. (To be clear, this means 7% for the left and 7% for the right.) > Hotseat icons are the same size as workspace icons. > Far left and right hotseat edges line up with workspace edges. > All Apps button is scaled down 8dp. Bug: 24003478 Change-Id: Idb057ab0f6ba29e7fd93feac7573ca2e07c7e839
Diffstat (limited to 'src/com/android/launcher3/Hotseat.java')
-rw-r--r--src/com/android/launcher3/Hotseat.java7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/com/android/launcher3/Hotseat.java b/src/com/android/launcher3/Hotseat.java
index 17fdeb1dc..98912f56e 100644
--- a/src/com/android/launcher3/Hotseat.java
+++ b/src/com/android/launcher3/Hotseat.java
@@ -17,8 +17,7 @@
package com.android.launcher3;
import android.content.Context;
-import android.content.res.Configuration;
-import android.content.res.Resources;
+import android.graphics.Rect;
import android.graphics.drawable.Drawable;
import android.os.Bundle;
import android.util.AttributeSet;
@@ -118,6 +117,10 @@ public class Hotseat extends FrameLayout
Drawable d = context.getResources().getDrawable(R.drawable.all_apps_button_icon);
mLauncher.resizeIconDrawable(d);
+ int scaleDownPx = getResources().getDimensionPixelSize(R.dimen.all_apps_button_scale_down);
+ Rect bounds = d.getBounds();
+ d.setBounds(bounds.left, bounds.top + scaleDownPx / 2, bounds.right - scaleDownPx,
+ bounds.bottom - scaleDownPx / 2);
allAppsButton.setCompoundDrawables(null, d, null, null);
allAppsButton.setContentDescription(context.getString(R.string.all_apps_button_label));