MySoulIsCry

Untitled

Nov 13th, 2021
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.26 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <TableLayout 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. tools:context=".MainActivity"
  8. android:background="#212121">
  9.  
  10. <LinearLayout
  11. android:layout_width="match_parent"
  12. android:layout_height="wrap_content"
  13. android:layout_margin="10dp">
  14. <Button
  15. android:id="@+id/ce"
  16. android:layout_width="wrap_content"
  17. android:layout_height="match_parent"
  18. android:layout_weight="1"
  19. android:text="ce"/>
  20. <TextView
  21. android:layout_width="match_parent"
  22. android:layout_height="wrap_content"
  23. android:textSize="60dp"
  24. android:textColor="@color/white"
  25. android:id="@+id/textBlock"
  26. android:textAlignment="textEnd"
  27. android:shadowColor="@color/cardview_light_background"
  28. android:shadowRadius="5"
  29. android:layout_weight="13"/>
  30. </LinearLayout>
  31.  
  32. <LinearLayout
  33. android:orientation="horizontal"
  34. android:layout_width="match_parent"
  35. android:layout_height="match_parent"
  36. android:layout_margin="7dp"
  37. android:layout_weight="1">
  38.  
  39. <LinearLayout
  40. android:orientation="vertical"
  41. android:layout_width="wrap_content"
  42. android:layout_height="match_parent"
  43. android:layout_margin="5dp">
  44. <Button
  45. android:id="@+id/one"
  46. android:layout_width="wrap_content"
  47. android:layout_height="wrap_content"
  48. android:layout_weight="1"
  49. android:text="1"/>
  50. <Button
  51. android:id="@+id/four"
  52. android:layout_width="wrap_content"
  53. android:layout_height="wrap_content"
  54. android:layout_weight="1"
  55. android:text="4"/>
  56. <Button
  57. android:id="@+id/seven"
  58. android:layout_width="wrap_content"
  59. android:layout_height="wrap_content"
  60. android:layout_weight="1"
  61. android:text="7"/>
  62. <Button
  63. android:layout_width="wrap_content"
  64. android:layout_height="wrap_content"
  65. android:visibility="invisible"
  66. android:layout_weight="1"/>
  67. </LinearLayout>
  68.  
  69. <LinearLayout
  70. android:orientation="vertical"
  71. android:layout_width="wrap_content"
  72. android:layout_height="match_parent"
  73. android:layout_margin="5dp">
  74. <Button
  75. android:id="@+id/two"
  76. android:layout_width="wrap_content"
  77. android:layout_height="wrap_content"
  78. android:layout_weight="1"
  79. android:text="2"/>
  80. <Button
  81. android:id="@+id/five"
  82. android:layout_width="wrap_content"
  83. android:layout_height="wrap_content"
  84. android:layout_weight="1"
  85. android:text="5"/>
  86. <Button
  87. android:id="@+id/eight"
  88. android:layout_width="wrap_content"
  89. android:layout_height="wrap_content"
  90. android:layout_weight="1"
  91. android:text="8"/>
  92. <Button
  93. android:id="@+id/zero"
  94. android:layout_width="wrap_content"
  95. android:layout_height="wrap_content"
  96. android:layout_weight="1"
  97. android:text="0"/>
  98. </LinearLayout>
  99.  
  100. <LinearLayout
  101. android:orientation="vertical"
  102. android:layout_width="wrap_content"
  103. android:layout_height="match_parent"
  104. android:layout_weight="1"
  105. android:layout_margin="5dp">
  106. <Button
  107. android:id="@+id/three"
  108. android:layout_width="wrap_content"
  109. android:layout_height="wrap_content"
  110. android:layout_weight="1"
  111. android:text="3"/>
  112. <Button
  113. android:id="@+id/six"
  114. android:layout_width="wrap_content"
  115. android:layout_height="wrap_content"
  116. android:layout_weight="1"
  117. android:text="6"/>
  118. <Button
  119. android:id="@+id/nine"
  120. android:layout_width="wrap_content"
  121. android:layout_height="wrap_content"
  122. android:layout_weight="1"
  123. android:text="9"/>
  124. <Button
  125. android:layout_width="wrap_content"
  126. android:layout_height="wrap_content"
  127. android:layout_weight="1"
  128. android:visibility="invisible"/>
  129. </LinearLayout>
  130.  
  131. <LinearLayout
  132. android:orientation="vertical"
  133. android:layout_width="wrap_content"
  134. android:layout_height="match_parent"
  135. android:layout_weight="1"
  136. android:layout_margin="5dp">
  137. <Button
  138. android:id="@+id/multiply"
  139. android:layout_width="wrap_content"
  140. android:layout_height="wrap_content"
  141. android:layout_weight="1"
  142. android:text="*"/>
  143. <Button
  144. android:id="@+id/minus"
  145. android:layout_width="wrap_content"
  146. android:layout_height="wrap_content"
  147. android:layout_weight="1"
  148. android:text="-"/>
  149. <Button
  150. android:id="@+id/plus"
  151. android:layout_width="wrap_content"
  152. android:layout_height="wrap_content"
  153. android:layout_weight="1"
  154. android:text="+"/>
  155. <Button
  156. android:id="@+id/equals"
  157. android:layout_width="wrap_content"
  158. android:layout_height="wrap_content"
  159. android:layout_weight="1"
  160. android:text="="
  161. />
  162. </LinearLayout>
  163.  
  164. </LinearLayout>
  165.  
  166. </TableLayout>
Advertisement
Add Comment
Please, Sign In to add comment