summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHayden Schoen <hayden@cyngn.com>2015-04-27 21:07:12 (GMT)
committerAbhisek Devkota <ciwrl@cyanogenmod.com>2015-05-07 07:59:27 (GMT)
commitdade958b46aa1743d1be94717aeea36b60a1d981 (patch)
tree358850c9f9bc65a512a6dbd953fc003fd2684ab5
parentfbffc2aa27e95b9ca1f1ab83827377aa11d7cb96 (diff)
downloadandroid_packages_apps_Trebuchet-dade958b46aa1743d1be94717aeea36b60a1d981.zip
android_packages_apps_Trebuchet-dade958b46aa1743d1be94717aeea36b60a1d981.tar.gz
android_packages_apps_Trebuchet-dade958b46aa1743d1be94717aeea36b60a1d981.tar.bz2
Trebuchet: Adjusted margin and vertical alignment of row titlestable/cm-12.0-YNG3C
Change-Id: Ic3e0837ac2726e4437bc5df68a3b1cb033d2d78f (cherry picked from commit 5207eac2786b15534252b826662dbe537144c2c7)
-rw-r--r--res/layout/app_drawer_item.xml10
-rw-r--r--src/com/android/launcher3/AppDrawerListAdapter.java2
2 files changed, 7 insertions, 5 deletions
diff --git a/res/layout/app_drawer_item.xml b/res/layout/app_drawer_item.xml
index 46a9652..19aef13 100644
--- a/res/layout/app_drawer_item.xml
+++ b/res/layout/app_drawer_item.xml
@@ -32,7 +32,6 @@
<LinearLayout
android:id="@+id/drawer_item_flow"
android:layout_alignParentRight="true"
- android:paddingTop="10dp"
android:layout_toRightOf="@+id/drawer_item_title"
android:layout_width="match_parent"
android:layout_height="wrap_content"
@@ -50,11 +49,14 @@
<com.android.launcher3.AutoFitTextView
android:id="@+id/drawer_item_title"
android:layout_width="27dp"
- android:layout_height="wrap_content"
- android:layout_marginTop="10dp"
+ android:layout_height="fill_parent"
+ android:layout_marginTop="6dp"
+ android:layout_marginBottom="24dp"
android:layout_marginLeft="6dp"
+ android:layout_alignTop="@id/drawer_item_flow"
+ android:layout_alignBottom="@id/drawer_item_flow"
android:layout_centerVertical="true"
- android:includeFontPadding="true"
+ android:includeFontPadding="false"
android:gravity="center"
android:singleLine="true"
autofit:minTextSize="8sp"
diff --git a/src/com/android/launcher3/AppDrawerListAdapter.java b/src/com/android/launcher3/AppDrawerListAdapter.java
index 25c6bb7..a940223 100644
--- a/src/com/android/launcher3/AppDrawerListAdapter.java
+++ b/src/com/android/launcher3/AppDrawerListAdapter.java
@@ -634,7 +634,7 @@ public class AppDrawerListAdapter extends RecyclerView.Adapter<AppDrawerListAdap
if (params instanceof ViewGroup.MarginLayoutParams) {
ViewGroup.MarginLayoutParams marginParams = (ViewGroup.MarginLayoutParams) params;
marginParams.setMargins(marginParams.leftMargin, marginParams.topMargin,
- marginParams.rightMargin, mDeviceProfile.iconTextSizePx);
+ marginParams.rightMargin, marginParams.bottomMargin);
holder.mTextView.setLayoutParams(marginParams);
}