Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="utf-8"?>
- <LinearLayout
- xmlns:android="http://schemas.android.com/apk/res/android"
- android:orientation="vertical"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:backgroundTint="@color/colorPrimaryDark">
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:orientation="vertical"
- android:weightSum="2"
- android:layout_marginTop="10dp"
- android:padding="15dp">
- <TextView
- android:id="@+id/info"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginTop="10dp"
- android:background="#80bfff"
- android:textColor="@color/colorAccent"
- android:textSize="30sp" />
- <EditText
- android:id="@+id/result"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:background="#80bfff"
- android:textColor="@color/colorAccent"
- android:textSize="60sp" />
- </LinearLayout>
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:orientation="horizontal"
- android:weightSum="4"
- android:layout_marginTop="10dp"
- android:layout_marginLeft="15dp"
- android:layout_marginRight="15dp">
- <Button
- android:id="@+id/SEVEN"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:backgroundTint="#2f70d8"
- android:text="7"
- android:textSize="30sp"
- android:layout_weight="1"/>
- <Button
- android:id="@+id/EIGHT"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:backgroundTint="#2f70d8"
- android:text="8"
- android:textSize="30sp"
- android:layout_weight="1"/>
- <Button
- android:id="@+id/NINE"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:backgroundTint="#2f70d8"
- android:text="9"
- android:textSize="30sp"
- android:layout_weight="1"/>
- <Button
- android:id="@+id/ADD"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:backgroundTint="#2f70d8"
- android:text="+"
- android:textSize="30sp"
- android:layout_weight="1"/>
- </LinearLayout>
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:orientation="horizontal"
- android:weightSum="4"
- android:layout_marginTop="10dp"
- android:layout_marginLeft="15dp"
- android:layout_marginRight="15dp">
- <Button
- android:id="@+id/FOUR"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:backgroundTint="#2f70d8"
- android:text="4"
- android:textSize="30sp"
- android:layout_weight="1"/>
- <Button
- android:id="@+id/FIVE"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:backgroundTint="#2f70d8"
- android:text="5"
- android:textSize="30sp"
- android:layout_weight="1"/>
- <Button
- android:id="@+id/SIX"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:backgroundTint="#2f70d8"
- android:text="6"
- android:textSize="30sp"
- android:layout_weight="1"/>
- <Button
- android:id="@+id/SUB"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:backgroundTint="#2f70d8"
- android:text="-"
- android:textSize="30sp"
- android:layout_weight="1"/>
- </LinearLayout>
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:orientation="horizontal"
- android:weightSum="4"
- android:layout_marginTop="10dp"
- android:layout_marginLeft="15dp"
- android:layout_marginRight="15dp">
- <Button
- android:id="@+id/ONE"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="1"
- android:backgroundTint="#2f70d8"
- android:textSize="30sp"
- android:layout_weight="1"/>
- <Button
- android:id="@+id/TWO"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:backgroundTint="#2f70d8"
- android:text="2"
- android:textSize="30sp"
- android:layout_weight="1"/>
- <Button
- android:id="@+id/THREE"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:backgroundTint="#2f70d8"
- android:text="3"
- android:textSize="30sp"
- android:layout_weight="1"/>
- <Button
- android:id="@+id/MULTIPLY"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:backgroundTint="#2f70d8"
- android:text="*"
- android:textSize="30sp"
- android:layout_weight="1"/>
- </LinearLayout>
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:orientation="horizontal"
- android:weightSum="4"
- android:layout_marginTop="5dp"
- android:layout_marginLeft="15dp"
- android:layout_marginRight="15dp">
- <Button
- android:id="@+id/DOT"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:backgroundTint="#2f70d8"
- android:text="."
- android:textSize="30sp"
- android:layout_weight="1"/>
- <Button
- android:id="@+id/ZERO"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:backgroundTint="#2f70d8"
- android:text="0"
- android:textSize="30sp"
- android:layout_weight="1"/>
- <Button
- android:id="@+id/CLEAR"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:backgroundTint="#2f70d8"
- android:text="C"
- android:textSize="30sp"
- android:layout_weight="1"/>
- <Button
- android:id="@+id/DIVISION"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:backgroundTint="#2f70d8"
- android:text="/"
- android:textSize="30sp"
- android:layout_weight="1"/>
- </LinearLayout>
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:orientation="horizontal"
- android:weightSum="2"
- android:layout_marginTop="5dp"
- android:layout_marginLeft="15dp"
- android:layout_marginRight="15dp">
- <Button
- android:id="@+id/EQUAL"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_weight="1"
- android:backgroundTint="#2f70d8"
- android:text="="
- android:textSize="30sp" />
- <Button
- android:id="@+id/BACKSPACE"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_weight="1"
- android:backgroundTint="#2f70d8"
- android:text="BKSP"
- android:textSize="30sp" />
- </LinearLayout>
- </LinearLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement