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:app="http://schemas.android.com/apk/res-auto"
- xmlns:tools="http://schemas.android.com/tools"
- android:id="@+id/activity_calc"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- tools:context="com.example.kaspero.coolcalc.CalcActivity"
- android:background="#ffffff">
- <LinearLayout
- android:orientation="vertical"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:layout_alignParentTop="true"
- android:layout_alignParentStart="true">
- <LinearLayout
- android:orientation="vertical"
- android:layout_width="match_parent"
- android:layout_height="150dp"
- android:background="@android:color/holo_blue_dark"
- android:layout_alignParentTop="true"
- android:layout_alignParentStart="true"
- android:layout_weight="1">
- <TextView
- android:text="5633"
- android:layout_height="wrap_content"
- android:id="@+id/textView2"
- android:textSize="45sp"
- android:layout_gravity="right"
- android:gravity="right"
- android:layout_width="match_parent"
- android:paddingRight="10dp"
- android:paddingLeft="10dp"
- android:paddingTop="50dp" />
- <ImageView
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- app:srcCompat="@mipmap/ic_launcher"
- android:id="@+id/imageView" />
- </LinearLayout>
- <LinearLayout
- android:orientation="horizontal"
- android:layout_width="match_parent"
- android:layout_height="90dp"
- android:weightSum="4"
- android:layout_weight="1">
- <Button
- android:text="7"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:id="@+id/button6"
- android:layout_weight="1"
- android:background="@android:color/white"
- android:textColor="@android:color/background_dark"
- android:textSize="30sp" />
- <Button
- android:text="8"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:id="@+id/button5"
- android:layout_weight="1"
- android:background="@android:color/white"
- android:textColor="@android:color/background_dark"
- android:textSize="30sp" />
- <Button
- android:text="9"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:id="@+id/button4"
- android:layout_weight="1"
- android:background="@android:color/white"
- android:textColor="@android:color/background_dark"
- android:textSize="30sp" />
- <ImageButton
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- app:srcCompat="@drawable/divide"
- android:id="@+id/imageButton"
- android:layout_weight="1"
- android:background="@android:color/background_light" />
- </LinearLayout>
- <LinearLayout
- android:orientation="horizontal"
- android:layout_width="match_parent"
- android:layout_height="90dp"
- android:weightSum="4"
- android:layout_weight="1">
- <Button
- android:text="4"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:id="@+id/button6"
- android:layout_weight="1"
- android:background="@android:color/white"
- android:textColor="@android:color/background_dark"
- android:textSize="30sp" />
- <Button
- android:text="5"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:id="@+id/button5"
- android:layout_weight="1"
- android:background="@android:color/white"
- android:textColor="@android:color/background_dark"
- android:textSize="30sp" />
- <Button
- android:text="6"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:id="@+id/button4"
- android:layout_weight="1"
- android:background="@android:color/white"
- android:textColor="@android:color/background_dark"
- android:textSize="30sp" />
- <ImageButton
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- app:srcCompat="@drawable/multiply"
- android:id="@+id/imageButton"
- android:layout_weight="1"
- android:background="@android:color/background_light"
- android:elevation="0dp" />
- </LinearLayout>
- <LinearLayout
- android:orientation="horizontal"
- android:layout_width="match_parent"
- android:layout_height="90dp"
- android:weightSum="4">
- <Button
- android:text="1"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:id="@+id/button6"
- android:layout_weight="1"
- android:background="@android:color/white"
- android:textColor="@android:color/background_dark"
- android:textSize="30sp" />
- <Button
- android:text="2"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:id="@+id/button5"
- android:layout_weight="1"
- android:background="@android:color/white"
- android:textColor="@android:color/background_dark"
- android:textSize="30sp" />
- <Button
- android:text="3"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:id="@+id/button4"
- android:layout_weight="1"
- android:background="@android:color/white"
- android:textColor="@android:color/background_dark"
- android:textSize="30sp" />
- <ImageButton
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- app:srcCompat="@drawable/subtract"
- android:id="@+id/imageButton"
- android:layout_weight="1"
- android:background="@android:color/background_light" />
- </LinearLayout>
- <LinearLayout
- android:orientation="horizontal"
- android:layout_width="match_parent"
- android:layout_height="90dp">
- <LinearLayout
- android:orientation="vertical"
- android:layout_height="match_parent"
- android:layout_width="192dp"
- android:gravity="center">
- <Button
- android:text="CLEAR"
- android:layout_width="150dp"
- android:layout_height="wrap_content"
- android:id="@+id/button3"
- android:textSize="25sp"
- android:background="@android:color/holo_blue_dark" />
- </LinearLayout>
- <Button
- android:text="0"
- android:layout_width="96dp"
- android:layout_height="match_parent"
- android:id="@+id/button4"
- android:background="@android:color/white"
- android:textColor="@android:color/background_dark"
- android:textSize="30sp" />
- <ImageButton
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- app:srcCompat="@drawable/add"
- android:id="@+id/imageButton"
- android:background="@android:color/background_light" />
- </LinearLayout>
- </LinearLayout>
- </RelativeLayout>
Add Comment
Please, Sign In to add comment