OSDN Git Service

margin fixes when theres no icon
authorKoushik Dutta <koushd@gmail.com>
Tue, 26 Feb 2013 02:41:39 +0000 (18:41 -0800)
committerKoushik Dutta <koushd@gmail.com>
Tue, 26 Feb 2013 02:41:39 +0000 (18:41 -0800)
Widgets/res/layout-v14/list_item_base.xml
Widgets/res/layout/list_item_base.xml

index ded1e0b..3741985 100644 (file)
@@ -10,7 +10,7 @@
         android:layout_width="48dp"
         android:layout_height="32dp"
         android:layout_gravity="center_vertical"
-        android:layout_margin="@dimen/section_padding"
+        android:layout_marginLeft="@dimen/section_padding"
         android:scaleType="fitCenter" >
     </ImageView>
 
@@ -18,6 +18,7 @@
         android:layout_width="0dp"
         android:layout_height="wrap_content"
         android:layout_gravity="center_vertical"
+        android:layout_marginLeft="@dimen/section_padding"
         android:layout_weight="1"
         android:orientation="vertical" >
 
index 722f0a9..e44df3c 100644 (file)
@@ -1,12 +1,12 @@
 <?xml version="1.0" encoding="utf-8"?>
-<merge xmlns:android="http://schemas.android.com/apk/res/android">
+<merge xmlns:android="http://schemas.android.com/apk/res/android" >
 
     <ImageView
         android:id="@+id/image"
         android:layout_width="48dp"
         android:layout_height="32dp"
         android:layout_gravity="center_vertical"
-        android:layout_margin="@dimen/section_padding"
+        android:layout_marginLeft="@dimen/section_padding"
         android:scaleType="fitCenter" >
     </ImageView>
 
@@ -14,6 +14,7 @@
         android:layout_width="0dp"
         android:layout_height="wrap_content"
         android:layout_gravity="center_vertical"
+        android:layout_marginLeft="@dimen/section_padding"
         android:layout_weight="1"
         android:orientation="vertical" >