Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="utf-8"?>
- <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent"
- android:layout_height="match_parent" tools:context=".MainActivity">
- <GridLayout
- android:columnCount="4"
- android:rowCount="9"
- android:layout_marginTop="200dp"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:layout_alignParentTop="true"
- android:layout_alignParentLeft="true"
- android:layout_alignParentStart="true">
- <Button
- android:layout_rowWeight="1"
- android:layout_columnSpan="2"
- android:layout_columnWeight="1"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="C"
- android:id="@+id/clear"
- android:layout_row="0"
- android:layout_column="0" />
- <Button
- android:layout_rowWeight="1"
- android:layout_columnSpan="2"
- android:layout_columnWeight="1"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="="
- android:id="@+id/jednako"
- android:layout_row="0"
- android:layout_column="2" />
- <Button
- android:layout_rowWeight="1"
- android:layout_columnWeight="1"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="1"
- android:layout_row="1"
- android:layout_column="0"
- android:id="@+id/jedan" />
- <Button
- android:layout_rowWeight="1"
- android:layout_columnWeight="1"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="2"
- android:layout_row="1"
- android:layout_column="1"
- android:id="@+id/dva" />
- <Button
- android:layout_rowWeight="1"
- android:layout_columnWeight="1"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="3"
- android:layout_row="1"
- android:layout_column="2"
- android:id="@+id/tri" />
- <Button
- android:layout_rowWeight="1"
- android:layout_columnWeight="1"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="+"
- android:layout_row="1"
- android:layout_column="3"
- android:id="@+id/plus" />
- <Button
- android:layout_rowWeight="1"
- android:layout_columnWeight="1"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="4"
- android:layout_row="2"
- android:layout_column="0"
- android:id="@+id/cetiri" />
- <Button
- android:layout_rowWeight="1"
- android:layout_columnWeight="1"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="5"
- android:layout_row="2"
- android:layout_column="1"
- android:id="@+id/pet" />
- <Button
- android:layout_rowWeight="1"
- android:layout_columnWeight="1"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="6"
- android:layout_row="2"
- android:layout_column="2"
- android:id="@+id/sest" />
- <Button
- android:layout_rowWeight="1"
- android:layout_columnWeight="1"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="-"
- android:layout_row="2"
- android:layout_column="3"
- android:id="@+id/minus" />
- <Button
- android:layout_rowWeight="1"
- android:layout_columnWeight="1"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="7"
- android:layout_row="3"
- android:layout_column="0"
- android:id="@+id/sedam" />
- <Button
- android:layout_rowWeight="1"
- android:layout_columnWeight="1"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="8"
- android:layout_row="3"
- android:layout_column="1"
- android:id="@+id/osam" />
- <Button
- android:layout_rowWeight="1"
- android:layout_columnWeight="1"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="9"
- android:layout_row="3"
- android:layout_column="2"
- android:id="@+id/devet" />
- <Button
- android:layout_rowWeight="1"
- android:layout_columnWeight="1"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="*"
- android:layout_row="3"
- android:layout_column="3"
- android:id="@+id/puta" />
- <Button
- android:layout_rowWeight="1"
- android:layout_columnWeight="1"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="0"
- android:layout_row="4"
- android:layout_column="1"
- android:id="@+id/nula" />
- <Button
- android:layout_rowWeight="1"
- android:layout_columnWeight="1"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="/"
- android:layout_row="4"
- android:layout_column="3"
- android:id="@+id/podijeljeno" />
- </GridLayout>
- <EditText
- android:layout_marginTop="100dp"
- android:layout_width="match_parent"
- android:layout_height="100dp"
- android:id="@+id/editText"
- android:textSize="50sp"/>
- </RelativeLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement