Source

kargu / res / layout / activity_main.xml

Full commit
<?xml version="1.0" encoding="utf-8"?>

<LinearLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:background="@color/light_gray"
    android:orientation="vertical"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:paddingBottom="@dimen/activity_vertical_margin"
    android:paddingLeft="@dimen/activity_horizontal_margin"
    android:paddingRight="@dimen/activity_horizontal_margin"
    android:paddingTop="@dimen/activity_vertical_margin"
    tools:context=".MainActivity">

    <!-- Title -->

    <TextView
        android:id="@+id/title_appedition"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:text="@string/name_appedition"
        android:gravity="center_horizontal"
        android:textStyle="bold"
        android:textSize="@dimen/font_large"
        android:textColor="@color/dark_yellow"
        android:paddingBottom="16dip"/>

    <!-- Input -->

    <LinearLayout
        xmlns:android="http://schemas.android.com/apk/res/android"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:orientation="horizontal"
        android:padding="8dip">

        <EditText
            android:id="@+id/edit_inputNumber"
            android:hint="@string/edit_inputNumber"
            android:layout_weight="1"
            android:layout_width="0dp"
            android:layout_height="wrap_content"
            android:focusable="true"
            android:singleLine="true"
            android:inputType="numberDecimal"/>

    </LinearLayout>

    <!-- Additionals -->

    <RelativeLayout
        xmlns:android="http://schemas.android.com/apk/res/android"
        android:orientation="horizontal"
        android:layout_width="match_parent"
        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"/>

        <Button
            android:id="@+id/button_reset"
            android:text="@string/button_reset"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_toRightOf="@+id/button_count"
            android:layout_alignTop="@+id/button_count"/>

    </RelativeLayout>

</LinearLayout>