Commits

M Haidar Hanif  committed f9d3688

Align some XML tags to be shorter

  • Participants
  • Parent commits c0170c4

Comments (0)

Files changed (3)

File res/layout/activity_about.xml

     android:layout_width="250dp"
     android:layout_height="180dp"
     android:background="@color/light_gray"
-    android:padding="12dip"
-    >
+    android:padding="12dip">
 
     <TextView
         android:id="@+id/about_title"
         android:gravity="center_horizontal"
         android:textSize="@dimen/font_medium"
         android:textColor="@color/dark_yellow"
-        android:paddingBottom="12dip"
-        />
+        android:paddingBottom="12dip"/>
 
     <TextView
         android:text="@string/dialog_about"
         android:gravity="center_horizontal"
         android:textSize="@dimen/font_small"
         android:textColor="@color/dark_gray"
-        android:paddingBottom="12dip"
-        />
+        android:paddingBottom="12dip"/>
 
     <Button
         android:id="@+id/button_close_dialog"
         android:layout_height="fill_parent"
         android:layout_width="wrap_content"
         android:layout_gravity="center_horizontal"
-        android:onClick="closeDialog"
-        />
+        android:onClick="closeDialog"/>
 
 </LinearLayout>

File res/layout/activity_display_number.xml

     android:orientation="vertical"
     android:layout_width="match_parent"
     android:layout_height="match_parent"
-    android:gravity="center_vertical" >
+    android:gravity="center_vertical">
 
 </LinearLayout>

File res/layout/activity_main.xml

     android:paddingLeft="@dimen/activity_horizontal_margin"
     android:paddingRight="@dimen/activity_horizontal_margin"
     android:paddingTop="@dimen/activity_vertical_margin"
-    tools:context=".MainActivity" >
+    tools:context=".MainActivity">
 
     <!-- Title -->
 
         android:textStyle="bold"
         android:textSize="@dimen/font_large"
         android:textColor="@color/dark_yellow"
-        android:paddingBottom="16dip" />
+        android:paddingBottom="16dip"/>
 
     <!-- Input -->
 
         android:layout_width="match_parent"
         android:layout_height="wrap_content"
         android:orientation="horizontal"
-        android:padding="8dip" >
+        android:padding="8dip">
 
         <EditText
             android:id="@+id/edit_inputNumber"
             android:layout_weight="1"
             android:layout_width="0dp"
             android:layout_height="wrap_content"
-            android:focusable="true" />
+            android:focusable="true"/>
 
     </LinearLayout>
 
         xmlns:android="http://schemas.android.com/apk/res/android"
         android:orientation="horizontal"
         android:layout_width="match_parent"
-        android:layout_height="wrap_content" >
+        android:layout_height="wrap_content"
+        android:gravity="center_horizontal">
 
         <Button
             android:id="@+id/button_count"
             android:text="@string/button_count"
             android:layout_width="wrap_content"
             android:layout_height="wrap_content"
-            android:onClick="calculateNumber" />
+            android:onClick="calculateNumber"/>
 
         <Button
             android:id="@+id/button_reset"
             android:layout_width="wrap_content"
             android:layout_height="wrap_content"
             android:layout_toRightOf="@+id/button_count"
-            android:layout_alignTop="@+id/button_count" />
+            android:layout_alignTop="@+id/button_count"/>
 
     </RelativeLayout>