Browse Source

Fix magic numbers in list_item.xml #12

Divay Prakash 8 years ago
parent
commit
75a2cc8e43
1 changed files with 12 additions and 12 deletions
  1. 12 12
      res/layout/list_item.xml

+ 12 - 12
res/layout/list_item.xml

@@ -44,7 +44,7 @@
                 android:layout_width="@dimen/file_icon_size"
                 android:layout_height="@dimen/file_icon_size"
                 android:layout_gravity="top|right"
-                android:layout_marginRight="4dp"
+                android:layout_marginRight="@dimen/standard_quarter_margin"
                 android:src="@drawable/ic_synced" />
 
             <ImageView
@@ -59,12 +59,12 @@
                 android:layout_width="wrap_content"
                 android:layout_height="wrap_content"
                 android:layout_gravity="bottom|right"
-                android:layout_marginRight="4dp"
+                android:layout_marginRight="@dimen/standard_quarter_margin"
                 android:src="@drawable/ic_available_offline" />
         </FrameLayout>
 
         <LinearLayout
-            android:layout_width="0dp"
+            android:layout_width="@dimen/zero"
             android:layout_height="match_parent"
             android:layout_weight="1"
             android:gravity="top"
@@ -76,8 +76,8 @@
                 android:layout_width="wrap_content"
                 android:layout_height="wrap_content"
                 android:layout_gravity="center_vertical"
-                android:layout_marginLeft="0dp"
-                android:layout_marginRight="4dp"
+                android:layout_marginLeft="@dimen/zero"
+                android:layout_marginRight="@dimen/standard_quarter_margin"
                 android:ellipsize="middle"
                 android:singleLine="true"
                 android:text="TextView"
@@ -87,8 +87,8 @@
             <LinearLayout
                 android:layout_width="match_parent"
                 android:layout_height="wrap_content"
-                android:layout_marginLeft="0dp"
-                android:layout_marginRight="4dp"
+                android:layout_marginLeft="@dimen/zero"
+                android:layout_marginRight="@dimen/standard_quarter_margin"
                 android:orientation="horizontal">
 
                 <TextView
@@ -132,10 +132,10 @@
                 android:layout_width="wrap_content"
                 android:layout_height="wrap_content"
                 android:layout_gravity="center_vertical"
-                android:layout_marginTop="4dp"
-                android:layout_marginLeft="4dp"
-                android:layout_marginBottom="4dp"
-                android:layout_marginRight="4dp"
+                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:src="@drawable/shared_via_link" />
 
             <ImageView
@@ -143,7 +143,7 @@
                 android:layout_width="wrap_content"
                 android:layout_height="wrap_content"
                 android:layout_gravity="center_vertical"
-                android:layout_marginLeft="4dp"
+                android:layout_marginLeft="@dimen/standard_quarter_margin"
 
                 android:src="@drawable/ic_checkbox_blank_outline"
                 android:layout_toRightOf="@id/sharedIcon"/>