0% found this document useful (0 votes)
15 views2 pages

Kalkulator PC Aplikasi Layout

The document defines the layout of a basic calculator app with two input fields, four operator buttons (+ - x /), an output field to display the result, and a button to return to the main menu. The layout uses a RelativeLayout container with TextViews and EditTexts for the input and output fields positioned relative to each other, and a LinearLayout container holding the operator buttons centered horizontally below the output field.

Uploaded by

dewot999
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
15 views2 pages

Kalkulator PC Aplikasi Layout

The document defines the layout of a basic calculator app with two input fields, four operator buttons (+ - x /), an output field to display the result, and a button to return to the main menu. The layout uses a RelativeLayout container with TextViews and EditTexts for the input and output fields positioned relative to each other, and a LinearLayout container holding the operator buttons centered horizontally below the output field.

Uploaded by

dewot999
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd

<RelativeLayout

xmlns:android="[Link]
xmlns:tools="[Link]
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="#F0FFFF">
<TextView
android:id="@+id/textView2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_marginLeft="10dp"
android:layout_marginTop="10dp"
android:text="Input 1 : "
android:textStyle="bold" />
<EditText
android:id="@+id/wowowo"
android:layout_width="200dp"
android:layout_height="40dp"
android:layout_below="@+id/textView2"
android:layout_centerHorizontal="true"
android:layout_gravity="center_horizontal"
android:layout_marginTop="15dp"
android:gravity="center_horizontal" >
<requestFocus />
</EditText>
<TextView
android:id="@+id/TextView01"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="15dp"
android:layout_alignLeft="@+id/textView2"
android:layout_below="@+id/wowowo"
android:text="Input 2 : "
android:textStyle="bold" />
<EditText
android:id="@+id/hasil"
android:layout_width="200dp"
android:layout_height="40dp"
android:layout_marginTop="15dp"
android:layout_alignLeft="@+id/wowowo"
android:layout_below="@+id/TextView01"
android:gravity="center_horizontal" />
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/hasil"
android:layout_centerHorizontal="true" android:id="@+id/linearLayout1">
<Button
android:id="@+id/aaa"
android:layout_marginTop="15dp"
android:layout_width="52px"
android:layout_height="wrap_content"
android:textStyle="bold"
android:textSize="7pt"
android:text="+" />
<Button
android:id="@+id/bbb"
android:layout_width="52px"
android:layout_height="wrap_content"
android:layout_marginTop="15dp"
android:textSize="7pt"
android:textStyle="bold"
android:text="-" />
<Button
android:id="@+id/button4"
android:layout_width="52px"
android:layout_height="wrap_content"
android:layout_marginTop="15dp"
android:textSize="7pt"
android:textStyle="bold"
android:text="x" />
<Button
android:id="@+id/button3"
android:layout_width="52px"
android:layout_height="wrap_content"
android:layout_marginTop="15dp"
android:textStyle="bold"
android:textSize="7pt"
android:text="/" />
</LinearLayout>
<EditText
android:id="@+id/editText2"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_marginTop="12dp"
android:layout_alignLeft="@+id/linearLayout1"
android:layout_alignRight="@+id/linearLayout1"
android:gravity="center_horizontal"
android:textStyle="bold"
android:layout_below="@+id/linearLayout1" />
<Button
android:id="@+id/button5"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="12dp"
android:layout_alignRight="@+id/editText2"
android:layout_below="@+id/editText2"
android:text="Main Menu" />
</RelativeLayout>

You might also like