Advertisement
Guest User

number_calculations

a guest
Jun 28th, 2016
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 4.56 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3.    android:layout_width="match_parent"
  4.    android:layout_height="match_parent"
  5.    android:padding="10dp"
  6.    android:background="#000">
  7.     <TextView
  8.        android:layout_height="20dp"
  9.        android:layout_width="match_parent"
  10.        android:id="@+id/input_label"
  11.        android:text="INPUT :"
  12.        android:textColorHint="#f5010d"
  13.        android:background="#99fae500"
  14.        android:textColor="#050404"
  15.        android:textStyle="bold"
  16.        />
  17.     <EditText
  18.        android:layout_height="30dp"
  19.        android:layout_width="match_parent"
  20.        android:id="@+id/input"
  21.        android:layout_below="@+id/input_label"
  22.        android:hint="Input"
  23.        android:background="#9909c454"
  24.        android:textColor="#edd206"
  25.        android:textStyle="bold"
  26.        />
  27.     <TextView
  28.        android:layout_height="20dp"
  29.        android:layout_width="match_parent"
  30.        android:id="@+id/output_label"
  31.        android:layout_below="@+id/input"
  32.        android:text="OUTPUT :"
  33.        android:textColorHint="#87383c"
  34.        android:background="#99faf600"
  35.        android:textColor="#050404"
  36.        android:textStyle="bold"
  37.        />
  38.     <EditText
  39.        android:layout_height="30dp"
  40.        android:layout_width="match_parent"
  41.        android:id="@+id/output"
  42.        android:layout_below="@+id/output_label"
  43.        android:hint="output"
  44.        android:background="#99fa0019"
  45.        android:textColor="#edd206"
  46.        android:textStyle="bold"
  47.        />
  48.     <TextView
  49.        android:layout_height="20dp"
  50.        android:layout_width="match_parent"
  51.        android:id="@+id/select"
  52.        android:layout_below="@+id/output"
  53.        android:text="Select Number system:"
  54.  
  55.        android:background="#9900fae1"
  56.        android:textColor="#050404"
  57.        android:textStyle="bold"
  58.        />
  59.     <Spinner
  60.        android:layout_width="match_parent"
  61.        android:layout_height="50dp"
  62.        android:id="@+id/select_spinner"
  63.        android:layout_below="@+id/select"
  64.        android:background="#99940890">
  65.  
  66.     </Spinner>
  67.     <TextView
  68.        android:layout_height="20dp"
  69.        android:layout_width="match_parent"
  70.        android:id="@+id/result_label"
  71.        android:text="RESULT:"
  72.        android:layout_below="@+id/select_spinner"
  73.        android:background="#9900fae5"
  74.        android:textColor="#050404"
  75.        android:textStyle="bold"
  76.        />
  77.     <EditText
  78.        android:layout_height="30dp"
  79.        android:layout_width="match_parent"
  80.        android:id="@+id/result"
  81.        android:layout_below="@+id/result_label"
  82.        android:hint="Result"
  83.        android:background="#99df0615"
  84.        android:textColor="#edd206"
  85.        android:textStyle="bold"
  86.        android:layout_marginBottom="30dp"
  87.        />
  88.     <Button
  89.        android:layout_width="180dp"
  90.        android:layout_height="40dp"
  91.        android:text="ADD"
  92.        android:id="@+id/add"
  93.        android:layout_below="@+id/result"
  94.        android:clickable="true"
  95.        android:background="#ffe100"
  96.      />
  97.     <Button
  98.        android:layout_width="180dp"
  99.        android:layout_height="40dp"
  100.        android:text="SUBTRACT"
  101.        android:id="@+id/subtract"
  102.        android:clickable="true"
  103.        android:background="#26ff00"
  104.        android:layout_below="@+id/result"
  105.        android:layout_toRightOf="@+id/add"
  106.  
  107.         />
  108.  
  109.     <Button
  110.        android:layout_width="180dp"
  111.        android:layout_height="40dp"
  112.        android:text="MULTIPLY"
  113.        android:id="@+id/multiply"
  114.        android:clickable="true"
  115.        android:background="#11ff00"
  116.        android:layout_below="@+id/add"
  117.         />
  118.     <Button
  119.        android:layout_width="180dp"
  120.        android:layout_height="40dp"
  121.        android:text="DIVIDE"
  122.        android:id="@+id/divide"
  123.        android:clickable="true"
  124.        android:background="#ffe100"
  125.        android:layout_below="@+id/add"
  126.        android:layout_toRightOf="@+id/multiply"
  127.        />
  128.     <Button
  129.        android:layout_width="360dp"
  130.        android:layout_height="40dp"
  131.        android:id="@+id/clear"
  132.        android:text="CLEAR"
  133.        android:layout_below="@+id/multiply"
  134.        android:background="#05fff3"/>
  135.     <Button
  136.        android:layout_width="360dp"
  137.        android:layout_height="40dp"
  138.        android:id="@+id/answer"
  139.        android:text="ANSWER"
  140.        android:layout_below="@+id/clear"
  141.        android:background="#05ff65"/>
  142.  
  143. </RelativeLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement