Ver código fonte

Padding fixes.

Aidan Follestad 10 anos atrás
pai
commit
1fb5af070c

+ 1 - 1
library/src/main/res/layout/md_listitem.xml

@@ -15,7 +15,7 @@
         tools:text="Item"
         android:textSize="@dimen/md_listitem_textsize"
         android:gravity="center_vertical"
-        android:layout_marginLeft="32dp"
+        android:layout_marginLeft="@dimen/md_listitem_margin_left"
         android:layout_marginRight="@dimen/md_dialog_frame_margin" />
 
 </LinearLayout>

+ 1 - 0
library/src/main/res/values/dimens.xml

@@ -24,5 +24,6 @@
     <dimen name="md_listitem_height">48dp</dimen>
     <dimen name="md_listitem_control_margin">16dp</dimen>
     <dimen name="md_icon_margin">16dp</dimen>
+    <dimen name="md_listitem_margin_left">32dp</dimen>
 
 </resources>

+ 1 - 1
sample/src/main/res/layout/dialog_customlistitem.xml

@@ -11,7 +11,7 @@
         android:layout_width="wrap_content"
         android:layout_height="wrap_content"
         android:textSize="@dimen/md_listitem_textsize"
-        android:layout_marginLeft="@dimen/md_dialog_frame_margin"
+        android:layout_marginLeft="@dimen/md_listitem_margin_left"
         android:layout_alignParentLeft="true"
         android:layout_toLeftOf="@+id/button"
         android:layout_centerVertical="true" />