浏览代码

add constants for margins and use different placeholder

Andy Scherzinger 9 年之前
父节点
当前提交
bd7a50aabc
共有 3 个文件被更改,包括 8 次插入3 次删除
  1. 4 3
      res/layout/account_action.xml
  2. 1 0
      res/layout/accounts_layout.xml
  3. 3 0
      res/values/dims.xml

+ 4 - 3
res/layout/account_action.xml

@@ -3,6 +3,7 @@
   ownCloud Android client application
 
   Copyright (C) 2016 ownCloud Inc.
+  Copyright (C) 2016 Nextcloud
 
   This program is free software: you can redistribute it and/or modify
   it under the terms of the GNU General Public License version 2,
@@ -28,18 +29,18 @@
         android:layout_width="wrap_content"
         android:layout_height="wrap_content"
         android:layout_gravity="center_vertical"
-        android:layout_marginLeft="20dp"
+        android:layout_marginLeft="@dimen/list_item_avatar_icon_margin"
         android:src="@drawable/ic_account_plus"/>
 
     <TextView
         android:id="@+id/user_name"
         android:layout_width="0dp"
         android:layout_height="fill_parent"
-        android:layout_marginLeft="28dp"
+        android:layout_marginLeft="@dimen/list_item_avatar_text_margin"
         android:layout_weight="1"
         android:gravity="center_vertical"
         android:paddingRight="@dimen/standard_padding"
-        android:text="@string/placeholder_filename"
+        android:text="@string/placeholder_sentence"
         android:textColor="@color/primary"
         android:textSize="@dimen/two_line_primary_text_size"/>
 

+ 1 - 0
res/layout/accounts_layout.xml

@@ -3,6 +3,7 @@
   ownCloud Android client application
 
   Copyright (C) 2016 ownCloud Inc.
+  Copyright (C) 2016 Nextcloud
 
   This program is free software: you can redistribute it and/or modify
   it under the terms of the GNU General Public License version 2,

+ 3 - 0
res/values/dims.xml

@@ -44,4 +44,7 @@
 
     <dimen name="two_line_primary_text_size">16sp</dimen>
     <dimen name="two_line_secondary_text_size">14sp</dimen>
+
+    <dimen name="list_item_avatar_icon_margin">20dp</dimen>
+    <dimen name="list_item_avatar_text_margin">28dp</dimen>
 </resources>