瀏覽代碼

use the standard dp margin & padding references

Andy Scherzinger 9 年之前
父節點
當前提交
0e10c08442
共有 2 個文件被更改,包括 5 次插入5 次删除
  1. 4 4
      res/layout/whats_new_activity.xml
  2. 1 1
      res/layout/whats_new_element.xml

+ 4 - 4
res/layout/whats_new_activity.xml

@@ -30,9 +30,9 @@
         android:layout_height="0dp"
         android:layout_weight="10"
         android:weightSum="3"
-        android:layout_marginBottom="16dp"
-        android:layout_marginLeft="16dp"
-        android:layout_marginRight="16dp">
+        android:layout_marginBottom="@dimen/standard_margin"
+        android:layout_marginLeft="@dimen/standard_margin"
+        android:layout_marginRight="@dimen/standard_margin">
 
         <android.support.v7.widget.AppCompatButton
             android:id="@+id/skip"
@@ -63,7 +63,7 @@
                 android:layout_width="wrap_content"
                 android:layout_height="wrap_content"
                 android:layout_gravity="center"
-                android:padding="16dp"/>
+                android:padding="@dimen/standard_padding"/>
         </LinearLayout>
     </LinearLayout>
 

+ 1 - 1
res/layout/whats_new_element.xml

@@ -25,6 +25,6 @@
         android:layout_height="wrap_content"
         android:textAppearance="?android:attr/textAppearanceSmall"
         android:id="@+id/whatsNewText"
-        android:layout_margin="15dp"
+        android:layout_margin="@dimen/standard_margin"
         android:layout_gravity="center_horizontal"/>
 </LinearLayout>