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"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:padding="10dp"
- android:background="#000">
- <TextView
- android:layout_height="20dp"
- android:layout_width="match_parent"
- android:id="@+id/input_label"
- android:text="INPUT :"
- android:textColorHint="#f5010d"
- android:background="#99fae500"
- android:textColor="#050404"
- android:textStyle="bold"
- />
- <EditText
- android:layout_height="30dp"
- android:layout_width="match_parent"
- android:id="@+id/input"
- android:layout_below="@+id/input_label"
- android:hint="Input"
- android:background="#9909c454"
- android:textColor="#edd206"
- android:textStyle="bold"
- />
- <TextView
- android:layout_height="20dp"
- android:layout_width="match_parent"
- android:id="@+id/output_label"
- android:layout_below="@+id/input"
- android:text="OUTPUT :"
- android:textColorHint="#87383c"
- android:background="#99faf600"
- android:textColor="#050404"
- android:textStyle="bold"
- />
- <EditText
- android:layout_height="30dp"
- android:layout_width="match_parent"
- android:id="@+id/output"
- android:layout_below="@+id/output_label"
- android:hint="output"
- android:background="#99fa0019"
- android:textColor="#edd206"
- android:textStyle="bold"
- />
- <TextView
- android:layout_height="20dp"
- android:layout_width="match_parent"
- android:id="@+id/select"
- android:layout_below="@+id/output"
- android:text="Select Number system:"
- android:background="#9900fae1"
- android:textColor="#050404"
- android:textStyle="bold"
- />
- <Spinner
- android:layout_width="match_parent"
- android:layout_height="50dp"
- android:id="@+id/select_spinner"
- android:layout_below="@+id/select"
- android:background="#99940890">
- </Spinner>
- <TextView
- android:layout_height="20dp"
- android:layout_width="match_parent"
- android:id="@+id/result_label"
- android:text="RESULT:"
- android:layout_below="@+id/select_spinner"
- android:background="#9900fae5"
- android:textColor="#050404"
- android:textStyle="bold"
- />
- <EditText
- android:layout_height="30dp"
- android:layout_width="match_parent"
- android:id="@+id/result"
- android:layout_below="@+id/result_label"
- android:hint="Result"
- android:background="#99df0615"
- android:textColor="#edd206"
- android:textStyle="bold"
- android:layout_marginBottom="30dp"
- />
- <Button
- android:layout_width="180dp"
- android:layout_height="40dp"
- android:text="ADD"
- android:id="@+id/add"
- android:layout_below="@+id/result"
- android:clickable="true"
- android:background="#ffe100"
- />
- <Button
- android:layout_width="180dp"
- android:layout_height="40dp"
- android:text="SUBTRACT"
- android:id="@+id/subtract"
- android:clickable="true"
- android:background="#26ff00"
- android:layout_below="@+id/result"
- android:layout_toRightOf="@+id/add"
- />
- <Button
- android:layout_width="180dp"
- android:layout_height="40dp"
- android:text="MULTIPLY"
- android:id="@+id/multiply"
- android:clickable="true"
- android:background="#11ff00"
- android:layout_below="@+id/add"
- />
- <Button
- android:layout_width="180dp"
- android:layout_height="40dp"
- android:text="DIVIDE"
- android:id="@+id/divide"
- android:clickable="true"
- android:background="#ffe100"
- android:layout_below="@+id/add"
- android:layout_toRightOf="@+id/multiply"
- />
- <Button
- android:layout_width="360dp"
- android:layout_height="40dp"
- android:id="@+id/clear"
- android:text="CLEAR"
- android:layout_below="@+id/multiply"
- android:background="#05fff3"/>
- <Button
- android:layout_width="360dp"
- android:layout_height="40dp"
- android:id="@+id/answer"
- android:text="ANSWER"
- android:layout_below="@+id/clear"
- android:background="#05ff65"/>
- </RelativeLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement