浏览代码

Single and multi choice lists now look better when list items have multiple lines of text.

Aidan Follestad 9 年之前
父节点
当前提交
46652826ba

+ 2 - 0
core/src/main/res/layout-ldrtl/md_listitem_multichoice.xml

@@ -16,8 +16,10 @@
         android:layout_width="wrap_content"
         android:layout_height="match_parent"
         android:gravity="center_vertical"
+        android:paddingBottom="@dimen/md_listitem_vertical_margin_choice"
         android:paddingEnd="@dimen/md_listitem_control_margin"
         android:paddingRight="@dimen/md_listitem_control_margin"
+        android:paddingTop="@dimen/md_listitem_vertical_margin_choice"
         android:textSize="@dimen/md_listitem_textsize"
         tools:ignore="RtlSymmetry"
         tools:text="Item" />

+ 2 - 0
core/src/main/res/layout-ldrtl/md_listitem_singlechoice.xml

@@ -16,8 +16,10 @@
         android:layout_width="wrap_content"
         android:layout_height="match_parent"
         android:gravity="center_vertical"
+        android:paddingBottom="@dimen/md_listitem_vertical_margin_choice"
         android:paddingEnd="@dimen/md_listitem_control_margin"
         android:paddingRight="@dimen/md_listitem_control_margin"
+        android:paddingTop="@dimen/md_listitem_vertical_margin_choice"
         android:textSize="@dimen/md_listitem_textsize"
         tools:ignore="RtlSymmetry"
         tools:text="Item" />

+ 2 - 0
core/src/main/res/layout/md_listitem_multichoice.xml

@@ -26,8 +26,10 @@
         android:layout_height="match_parent"
         android:gravity="center_vertical"
         android:minHeight="@dimen/md_listitem_height"
+        android:paddingBottom="@dimen/md_listitem_vertical_margin_choice"
         android:paddingLeft="@dimen/md_listitem_control_margin"
         android:paddingStart="@dimen/md_listitem_control_margin"
+        android:paddingTop="@dimen/md_listitem_vertical_margin_choice"
         android:textSize="@dimen/md_listitem_textsize"
         tools:ignore="NewApi,RtlSymmetry"
         tools:text="Item" />

+ 2 - 0
core/src/main/res/layout/md_listitem_singlechoice.xml

@@ -26,8 +26,10 @@
         android:layout_height="match_parent"
         android:gravity="center_vertical"
         android:minHeight="@dimen/md_listitem_height"
+        android:paddingBottom="@dimen/md_listitem_vertical_margin_choice"
         android:paddingLeft="@dimen/md_listitem_control_margin"
         android:paddingStart="@dimen/md_listitem_control_margin"
+        android:paddingTop="@dimen/md_listitem_vertical_margin_choice"
         android:textSize="@dimen/md_listitem_textsize"
         tools:ignore="NewApi,RtlSymmetry"
         tools:text="Item" />

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

@@ -72,5 +72,6 @@
     <dimen name="circular_progress_border">4dp</dimen>
     <dimen name="md_default_dialog_width">0dp</dimen>
     <dimen name="md_listitem_vertical_margin">12dp</dimen>
+    <dimen name="md_listitem_vertical_margin_choice">8dp</dimen>
 
 </resources>