Преглед на файлове

Fix magic numbers in account_action.xml #12

Divay Prakash преди 8 години
родител
ревизия
1da94ff82a
променени са 2 файла, в които са добавени 5 реда и са изтрити 2 реда
  1. 2 2
      res/layout/account_action.xml
  2. 3 0
      res/values/dims.xml

+ 2 - 2
res/layout/account_action.xml

@@ -20,7 +20,7 @@
 <LinearLayout
     xmlns:android="http://schemas.android.com/apk/res/android"
     android:layout_width="fill_parent"
-    android:layout_height="72dp"
+    android:layout_height="@dimen/account_action_layout_height"
     android:orientation="horizontal"
     android:weightSum="1">
 
@@ -34,7 +34,7 @@
 
     <TextView
         android:id="@+id/user_name"
-        android:layout_width="0dp"
+        android:layout_width="@dimen/zero"
         android:layout_height="fill_parent"
         android:layout_marginLeft="@dimen/list_item_avatar_text_margin"
         android:layout_weight="1"

+ 3 - 0
res/values/dims.xml

@@ -48,4 +48,7 @@
 
     <dimen name="list_item_avatar_icon_margin">20dp</dimen>
     <dimen name="list_item_avatar_text_margin">28dp</dimen>
+
+    <dimen name="account_action_layout_height">72dp</dimen>
+    <dimen name="zero">0dp</dimen>
 </resources>