Forráskód Böngészése

Add material design specs

Hari 7 éve
szülő
commit
8d476f6578
1 módosított fájl, 13 hozzáadás és 14 törlés
  1. 13 14
      src/main/res/layout/list_item.xml

+ 13 - 14
src/main/res/layout/list_item.xml

@@ -138,17 +138,17 @@
             android:layout_width="wrap_content"
             android:layout_height="wrap_content"
             android:layout_gravity="center_vertical"
+            android:gravity="center"
+            android:paddingLeft="@dimen/standard_padding"
             android:paddingRight="@dimen/standard_padding">
 
             <ImageView
                 android:id="@+id/sharedIcon"
                 android:layout_width="wrap_content"
                 android:layout_height="wrap_content"
-                android:layout_gravity="center_vertical"
                 android:layout_marginTop="@dimen/standard_quarter_margin"
-                android:layout_marginLeft="@dimen/standard_quarter_margin"
                 android:layout_marginBottom="@dimen/standard_quarter_margin"
-                android:layout_marginRight="@dimen/standard_quarter_margin"
+                android:layout_marginRight="@dimen/standard_half_margin"
                 android:clickable="true"
                 android:src="@drawable/ic_unshared" />
 
@@ -156,29 +156,28 @@
                 android:id="@+id/custom_checkbox"
                 android:layout_width="wrap_content"
                 android:layout_height="wrap_content"
-                android:layout_gravity="center_vertical"
-                android:layout_marginLeft="@dimen/standard_quarter_margin"
-
-                android:src="@drawable/ic_checkbox_blank_outline"
-                android:layout_toRightOf="@id/sharedIcon"/>
+                android:layout_marginLeft="@dimen/standard_half_margin"
+                android:layout_marginRight="@dimen/standard_half_margin"
+                android:layout_toRightOf="@id/sharedIcon"
+                android:clickable="true"
+                android:src="@drawable/ic_checkbox_blank_outline" />
 
             <ImageView
                 android:id="@+id/overflow_menu"
                 android:layout_width="wrap_content"
                 android:layout_height="wrap_content"
-                android:layout_gravity="center_vertical"
-                android:layout_marginLeft="@dimen/standard_quarter_margin"
+                android:layout_marginLeft="@dimen/standard_half_margin"
+                android:layout_toRightOf="@id/custom_checkbox"
                 android:clickable="true"
-                android:src="@drawable/ic_dots_vertical"
-                android:layout_toRightOf="@id/custom_checkbox"/>
-        </RelativeLayout>
+                android:src="@drawable/ic_dots_vertical" />
 
+        </RelativeLayout>
 
     </LinearLayout>
 
     <View
         android:layout_width="match_parent"
         android:layout_height="1dp"
-        android:background="@color/list_divider_background"></View>
+        android:background="@color/list_divider_background" />
 
 </LinearLayout>