瀏覽代碼

add id and contentdescription to a layout

purigarcia 10 年之前
父節點
當前提交
d8e954d2d3
共有 3 個文件被更改,包括 4 次插入1 次删除
  1. 1 1
      res/layout/file_details_empty.xml
  2. 2 0
      res/layout/files.xml
  3. 1 0
      res/values/strings.xml

+ 1 - 1
res/layout/file_details_empty.xml

@@ -21,7 +21,7 @@
 	android:layout_width="match_parent"
 	android:layout_width="match_parent"
 	android:layout_height="match_parent"
 	android:layout_height="match_parent"
     android:background="#F7F7F7"
     android:background="#F7F7F7"
-    android:orientation="vertical" >
+    android:orientation="vertical">
 
 
     <TextView 
     <TextView 
         android:layout_width="fill_parent"
         android:layout_width="fill_parent"

+ 2 - 0
res/layout/files.xml

@@ -23,6 +23,8 @@
     android:background="@color/background_color"
     android:background="@color/background_color"
     android:orientation="horizontal"
     android:orientation="horizontal"
     android:baselineAligned="false"
     android:baselineAligned="false"
+    android:id="@+id/ListLayout"
+    android:contentDescription="@string/list_layout"
     >
     >
 
 
 	<FrameLayout 
 	<FrameLayout 

+ 1 - 0
res/values/strings.xml

@@ -79,6 +79,7 @@
     <string name="filedetails_download">Download</string>
     <string name="filedetails_download">Download</string>
     <string name="filedetails_sync_file">Refresh file</string>
     <string name="filedetails_sync_file">Refresh file</string>
     <string name="filedetails_renamed_in_upload_msg">File was renamed to %1$s during upload</string>
     <string name="filedetails_renamed_in_upload_msg">File was renamed to %1$s during upload</string>
+    <string name="list_layout">List Layout</string>
     <string name="action_share_file">Share link</string>
     <string name="action_share_file">Share link</string>
     <string name="action_unshare_file">Unshare link</string>
     <string name="action_unshare_file">Unshare link</string>
     <string name="common_yes">Yes</string>
     <string name="common_yes">Yes</string>