Advertisement
razituli

activity_main

Mar 31st, 2018
143
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.49 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. xmlns:app="http://schemas.android.com/apk/res-auto"
  4. xmlns:tools="http://schemas.android.com/tools"
  5. android:layout_width="match_parent"
  6. android:layout_height="match_parent"
  7. android:orientation="vertical"
  8. android:padding="20dp"
  9. tools:context="com.example.razitulikhlas.p2.MainActivityy">
  10.  
  11. <TextView
  12. android:layout_width="match_parent"
  13. android:layout_height="wrap_content"
  14. android:text="@string/panjang"
  15. android:padding="10dp"/>
  16. <TextView
  17. android:layout_width="match_parent"
  18. android:layout_height="wrap_content"
  19. android:text="@string/masukan_panjang"/>
  20. <EditText
  21. android:layout_width="match_parent"
  22. android:layout_height="wrap_content"
  23. android:id="@+id/editPanjang"
  24. android:inputType="numberDecimal"/>
  25.  
  26.  
  27. <TextView
  28. android:layout_width="match_parent"
  29. android:layout_height="wrap_content"
  30. android:text="@string/lebar"
  31. android:padding="10dp"/>
  32. <TextView
  33. android:layout_width="match_parent"
  34. android:layout_height="wrap_content"
  35. android:text="@string/masukan_lebar"/>
  36. <EditText
  37. android:layout_width="match_parent"
  38. android:layout_height="wrap_content"
  39. android:id="@+id/editLebar"
  40. android:inputType="numberDecimal"/>
  41.  
  42.  
  43. <TextView
  44. android:layout_width="match_parent"
  45. android:layout_height="wrap_content"
  46. android:text="@string/tinggi"
  47. android:padding="10dp"/>
  48. <TextView
  49. android:layout_width="match_parent"
  50. android:layout_height="wrap_content"
  51. android:text="@string/masukan_tinggi"/>
  52. <EditText
  53. android:layout_width="match_parent"
  54. android:layout_height="wrap_content"
  55. android:id="@+id/editTinggi"
  56. android:inputType="numberDecimal"/>
  57.  
  58. <Button
  59. android:layout_width="match_parent"
  60. android:layout_height="wrap_content"
  61. android:text="@string/cari_hasil"
  62. android:background="@color/colorPrimaryDark"
  63. android:textColor="#ffffff"
  64. android:id="@+id/btnCari"/>
  65. <TextView
  66. android:layout_width="match_parent"
  67. android:layout_height="wrap_content"
  68. android:padding="10dp"
  69. android:gravity="center"
  70. android:textSize="50sp"
  71. android:id="@+id/tvHasil"/>
  72.  
  73. </LinearLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement