浏览代码

fix lint warnings

AndyScherzinger 7 年之前
父节点
当前提交
461c4282e8
共有 1 个文件被更改,包括 19 次插入4 次删除
  1. 19 4
      src/main/res/layout/list_item.xml

+ 19 - 4
src/main/res/layout/list_item.xml

@@ -28,7 +28,8 @@
     <LinearLayout
     <LinearLayout
         android:layout_width="match_parent"
         android:layout_width="match_parent"
         android:layout_height="match_parent"
         android:layout_height="match_parent"
-        android:orientation="horizontal">
+        android:orientation="horizontal"
+        android:baselineAligned="false">
 
 
         <RelativeLayout
         <RelativeLayout
             android:layout_width="72dp"
             android:layout_width="72dp"
@@ -114,7 +115,10 @@
                     android:layout_width="wrap_content"
                     android:layout_width="wrap_content"
                     android:layout_height="wrap_content"
                     android:layout_height="wrap_content"
                     android:paddingRight="@dimen/standard_quarter_padding"
                     android:paddingRight="@dimen/standard_quarter_padding"
-                    android:gravity="right"
+                    android:paddingEnd="@dimen/standard_quarter_padding"
+                    android:paddingLeft="@dimen/zero"
+                    android:paddingStart="@dimen/zero"
+                    android:gravity="end"
                     android:text="@string/info_separator"
                     android:text="@string/info_separator"
                     android:textColor="@color/list_item_lastmod_and_filesize_text"
                     android:textColor="@color/list_item_lastmod_and_filesize_text"
                     android:textSize="@dimen/two_line_secondary_text_size"/>
                     android:textSize="@dimen/two_line_secondary_text_size"/>
@@ -123,7 +127,7 @@
                     android:id="@+id/last_mod"
                     android:id="@+id/last_mod"
                     android:layout_width="wrap_content"
                     android:layout_width="wrap_content"
                     android:layout_height="wrap_content"
                     android:layout_height="wrap_content"
-                    android:gravity="right"
+                    android:gravity="end"
                     android:text="@string/placeholder_media_time"
                     android:text="@string/placeholder_media_time"
                     android:textColor="@color/list_item_lastmod_and_filesize_text"
                     android:textColor="@color/list_item_lastmod_and_filesize_text"
                     android:textSize="@dimen/two_line_secondary_text_size"/>
                     android:textSize="@dimen/two_line_secondary_text_size"/>
@@ -136,7 +140,10 @@
             android:layout_width="wrap_content"
             android:layout_width="wrap_content"
             android:layout_height="wrap_content"
             android:layout_height="wrap_content"
             android:layout_gravity="center_vertical"
             android:layout_gravity="center_vertical"
-            android:paddingLeft="@dimen/standard_half_padding">
+            android:paddingLeft="@dimen/standard_half_padding"
+            android:paddingStart="@dimen/standard_half_padding"
+            android:paddingRight="@dimen/zero"
+            android:paddingEnd="@dimen/zero">
 
 
             <ImageView
             <ImageView
                 android:id="@+id/sharedIcon"
                 android:id="@+id/sharedIcon"
@@ -144,7 +151,9 @@
                 android:layout_height="match_parent"
                 android:layout_height="match_parent"
                 android:layout_centerVertical="true"
                 android:layout_centerVertical="true"
                 android:paddingRight="@dimen/list_item_share_right_margin"
                 android:paddingRight="@dimen/list_item_share_right_margin"
+                android:paddingEnd="@dimen/list_item_share_right_margin"
                 android:paddingLeft="@dimen/standard_half_padding"
                 android:paddingLeft="@dimen/standard_half_padding"
+                android:paddingStart="@dimen/standard_half_padding"
                 android:clickable="true"
                 android:clickable="true"
                 android:focusable="true"
                 android:focusable="true"
                 android:src="@drawable/ic_unshared" />
                 android:src="@drawable/ic_unshared" />
@@ -155,8 +164,11 @@
                 android:layout_height="match_parent"
                 android:layout_height="match_parent"
                 android:layout_centerVertical="true"
                 android:layout_centerVertical="true"
                 android:paddingLeft="@dimen/standard_half_padding"
                 android:paddingLeft="@dimen/standard_half_padding"
+                android:paddingStart="@dimen/standard_half_padding"
                 android:paddingRight="@dimen/alternate_padding"
                 android:paddingRight="@dimen/alternate_padding"
+                android:paddingEnd="@dimen/alternate_padding"
                 android:layout_toRightOf="@id/sharedIcon"
                 android:layout_toRightOf="@id/sharedIcon"
+                android:layout_toEndOf="@id/sharedIcon"
                 android:clickable="true"
                 android:clickable="true"
                 android:focusable="true"
                 android:focusable="true"
                 android:src="@drawable/ic_checkbox_blank_outline" />
                 android:src="@drawable/ic_checkbox_blank_outline" />
@@ -167,8 +179,11 @@
                 android:layout_height="match_parent"
                 android:layout_height="match_parent"
                 android:layout_centerVertical="true"
                 android:layout_centerVertical="true"
                 android:paddingLeft="@dimen/standard_half_padding"
                 android:paddingLeft="@dimen/standard_half_padding"
+                android:paddingStart="@dimen/standard_half_padding"
                 android:layout_toRightOf="@id/custom_checkbox"
                 android:layout_toRightOf="@id/custom_checkbox"
+                android:layout_toEndOf="@id/custom_checkbox"
                 android:paddingRight="@dimen/alternate_padding"
                 android:paddingRight="@dimen/alternate_padding"
+                android:paddingEnd="@dimen/alternate_padding"
                 android:clickable="true"
                 android:clickable="true"
                 android:focusable="true"
                 android:focusable="true"
                 android:src="@drawable/ic_dots_vertical" />
                 android:src="@drawable/ic_dots_vertical" />