diff options
-rw-r--r-- | res/layout/app_drawer_item.xml | 10 | ||||
-rw-r--r-- | src/com/android/launcher3/AppDrawerListAdapter.java | 2 |
2 files changed, 7 insertions, 5 deletions
diff --git a/res/layout/app_drawer_item.xml b/res/layout/app_drawer_item.xml index 46a965226..19aef139d 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 25c6bb793..a94022314 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); } |