Advertisement
Guest User

Untitled

a guest
Oct 23rd, 2019
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.34 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <androidx.constraintlayout.widget.ConstraintLayout 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.  
  9. <androidx.constraintlayout.widget.Guideline
  10. android:id="@+id/guidelineV01"
  11. android:layout_width="wrap_content"
  12. android:layout_height="wrap_content"
  13. android:orientation="vertical"
  14. app:layout_constraintGuide_percent="0.25" />
  15.  
  16. <androidx.constraintlayout.widget.Guideline
  17. android:id="@+id/guidelineV02"
  18. android:layout_width="wrap_content"
  19. android:layout_height="wrap_content"
  20. android:orientation="vertical"
  21. app:layout_constraintGuide_percent="0.5" />
  22.  
  23. <androidx.constraintlayout.widget.Guideline
  24. android:id="@+id/guidelineV03"
  25. android:layout_width="wrap_content"
  26. android:layout_height="wrap_content"
  27. android:orientation="vertical"
  28. app:layout_constraintGuide_percent="0.75" />
  29.  
  30. <androidx.constraintlayout.widget.Guideline
  31. android:id="@+id/guidelineH01"
  32. android:layout_width="wrap_content"
  33. android:layout_height="wrap_content"
  34. android:orientation="horizontal"
  35. app:layout_constraintGuide_percent="0.28"/>
  36.  
  37. <androidx.constraintlayout.widget.Guideline
  38. android:id="@+id/guidelineH02"
  39. android:layout_width="wrap_content"
  40. android:layout_height="wrap_content"
  41. android:orientation="horizontal"
  42. app:layout_constraintGuide_percent="0.4"/>
  43.  
  44. <androidx.constraintlayout.widget.Guideline
  45. android:id="@+id/guidelineH03"
  46. android:layout_width="wrap_content"
  47. android:layout_height="wrap_content"
  48. android:orientation="horizontal"
  49. app:layout_constraintGuide_percent="0.52"/>
  50.  
  51. <androidx.constraintlayout.widget.Guideline
  52. android:id="@+id/guidelineH04"
  53. android:layout_width="wrap_content"
  54. android:layout_height="wrap_content"
  55. android:orientation="horizontal"
  56. app:layout_constraintGuide_percent="0.64"/>
  57.  
  58. <androidx.constraintlayout.widget.Guideline
  59. android:id="@+id/guidelineH05"
  60. android:layout_width="wrap_content"
  61. android:layout_height="wrap_content"
  62. android:orientation="horizontal"
  63. app:layout_constraintGuide_percent="0.76"/>
  64.  
  65. <androidx.constraintlayout.widget.Guideline
  66. android:id="@+id/guidelineH06"
  67. android:layout_width="wrap_content"
  68. android:layout_height="wrap_content"
  69. android:orientation="horizontal"
  70. app:layout_constraintGuide_percent="0.88"/>
  71.  
  72. <Button
  73. android:id="@+id/buttonCE"
  74. android:layout_width="0dp"
  75. android:layout_height="0dp"
  76. android:text="CE"
  77. app:layout_constraintLeft_toLeftOf="parent"
  78. app:layout_constraintRight_toRightOf="@id/guidelineV02"
  79. app:layout_constraintBottom_toBottomOf="@id/guidelineH02"
  80. app:layout_constraintTop_toTopOf="@id/guidelineH01"
  81. />
  82. <Button
  83. android:id="@+id/buttonX"
  84. android:layout_width="0dp"
  85. android:layout_height="0dp"
  86. android:text="X"
  87. app:layout_constraintLeft_toLeftOf="@id/guidelineV02"
  88. app:layout_constraintRight_toRightOf="@id/guidelineV03"
  89. app:layout_constraintBottom_toBottomOf="@id/guidelineH02"
  90. app:layout_constraintTop_toTopOf="@id/guidelineH01"
  91. />
  92. <Button
  93. android:id="@+id/buttonDziel"
  94. android:layout_width="0dp"
  95. android:layout_height="0dp"
  96. android:text="/"
  97. app:layout_constraintLeft_toLeftOf="@id/guidelineV03"
  98. app:layout_constraintRight_toRightOf="parent"
  99. app:layout_constraintBottom_toBottomOf="@id/guidelineH02"
  100. app:layout_constraintTop_toTopOf="@id/guidelineH01"
  101. />
  102. <Button
  103. android:id="@+id/buttonPercent"
  104. android:layout_width="0dp"
  105. android:layout_height="0dp"
  106. android:text="%"
  107. app:layout_constraintLeft_toLeftOf="parent"
  108. app:layout_constraintRight_toRightOf="@id/guidelineV01"
  109. app:layout_constraintBottom_toBottomOf="@id/guidelineH03"
  110. app:layout_constraintTop_toTopOf="@id/guidelineH02"
  111. />
  112. <Button
  113. android:id="@+id/buttonSQRT"
  114. android:layout_width="0dp"
  115. android:layout_height="0dp"
  116. android:text="SQRT"
  117. app:layout_constraintLeft_toLeftOf="@id/guidelineV01"
  118. app:layout_constraintRight_toRightOf="@id/guidelineV02"
  119. app:layout_constraintBottom_toBottomOf="@id/guidelineH03"
  120. app:layout_constraintTop_toTopOf="@id/guidelineH02"
  121. />
  122. <Button
  123. android:id="@+id/buttonSYR"
  124. android:layout_width="0dp"
  125. android:layout_height="0dp"
  126. android:text="syr"
  127. app:layout_constraintLeft_toLeftOf="@id/guidelineV02"
  128. app:layout_constraintRight_toRightOf="@id/guidelineV03"
  129. app:layout_constraintBottom_toBottomOf="@id/guidelineH03"
  130. app:layout_constraintTop_toTopOf="@id/guidelineH02"
  131. />
  132. <Button
  133. android:id="@+id/buttonMnoz"
  134. android:layout_width="0dp"
  135. android:layout_height="0dp"
  136. android:text="*"
  137. app:layout_constraintLeft_toLeftOf="@id/guidelineV03"
  138. app:layout_constraintRight_toRightOf="parent"
  139. app:layout_constraintBottom_toBottomOf="@id/guidelineH03"
  140. app:layout_constraintTop_toTopOf="@id/guidelineH02"
  141. />
  142. <Button
  143. android:id="@+id/button7"
  144. android:layout_width="0dp"
  145. android:layout_height="0dp"
  146. android:text="7"
  147. app:layout_constraintLeft_toLeftOf="parent"
  148. app:layout_constraintRight_toRightOf="@id/guidelineV01"
  149. app:layout_constraintBottom_toBottomOf="@id/guidelineH04"
  150. app:layout_constraintTop_toTopOf="@id/guidelineH03"
  151. />
  152. <Button
  153. android:id="@+id/button8"
  154. android:layout_width="0dp"
  155. android:layout_height="0dp"
  156. android:text="8"
  157. app:layout_constraintLeft_toLeftOf="@id/guidelineV01"
  158. app:layout_constraintRight_toRightOf="@id/guidelineV02"
  159. app:layout_constraintBottom_toBottomOf="@id/guidelineH04"
  160. app:layout_constraintTop_toTopOf="@id/guidelineH03"
  161. />
  162. <Button
  163. android:id="@+id/button9"
  164. android:layout_width="0dp"
  165. android:layout_height="0dp"
  166. android:text="9"
  167. app:layout_constraintLeft_toLeftOf="@id/guidelineV02"
  168. app:layout_constraintRight_toRightOf="@id/guidelineV03"
  169. app:layout_constraintBottom_toBottomOf="@id/guidelineH04"
  170. app:layout_constraintTop_toTopOf="@id/guidelineH03"
  171. />
  172. <Button
  173. android:id="@+id/buttonMinus"
  174. android:layout_width="0dp"
  175. android:layout_height="0dp"
  176. app:layout_constraintLeft_toLeftOf="@id/guidelineV03"
  177. app:layout_constraintRight_toRightOf="parent"
  178. app:layout_constraintBottom_toBottomOf="@id/guidelineH04"
  179. app:layout_constraintTop_toTopOf="@id/guidelineH03"
  180. />
  181. <Button
  182. android:id="@+id/button4"
  183. android:layout_width="0dp"
  184. android:layout_height="0dp"
  185. app:layout_constraintLeft_toLeftOf="parent"
  186. app:layout_constraintRight_toRightOf="@id/guidelineV01"
  187. app:layout_constraintBottom_toBottomOf="@id/guidelineH05"
  188. app:layout_constraintTop_toTopOf="@id/guidelineH04"
  189. />
  190. <Button
  191. android:id="@+id/button5"
  192. android:layout_width="0dp"
  193. android:layout_height="0dp"
  194. app:layout_constraintLeft_toLeftOf="@id/guidelineV01"
  195. app:layout_constraintRight_toRightOf="@id/guidelineV02"
  196. app:layout_constraintBottom_toBottomOf="@id/guidelineH05"
  197. app:layout_constraintTop_toTopOf="@id/guidelineH04"
  198. />
  199. <Button
  200. android:id="@+id/button6"
  201. android:layout_width="0dp"
  202. android:layout_height="0dp"
  203. app:layout_constraintLeft_toLeftOf="@id/guidelineV02"
  204. app:layout_constraintRight_toRightOf="@id/guidelineV03"
  205. app:layout_constraintBottom_toBottomOf="@id/guidelineH05"
  206. app:layout_constraintTop_toTopOf="@id/guidelineH04"
  207. />
  208. <Button
  209. android:id="@+id/buttonPlus"
  210. android:layout_width="0dp"
  211. android:layout_height="0dp"
  212. app:layout_constraintLeft_toLeftOf="@id/guidelineV03"
  213. app:layout_constraintRight_toRightOf="parent"
  214. app:layout_constraintBottom_toBottomOf="@id/guidelineH05"
  215. app:layout_constraintTop_toTopOf="@id/guidelineH04"
  216. />
  217. <Button
  218. android:id="@+id/button1"
  219. android:layout_width="0dp"
  220. android:layout_height="0dp"
  221. app:layout_constraintLeft_toLeftOf="parent"
  222. app:layout_constraintRight_toRightOf="@id/guidelineV01"
  223. app:layout_constraintBottom_toBottomOf="@id/guidelineH06"
  224. app:layout_constraintTop_toTopOf="@id/guidelineH05"
  225. />
  226. <Button
  227. android:id="@+id/button2"
  228. android:layout_width="0dp"
  229. android:layout_height="0dp"
  230. app:layout_constraintLeft_toLeftOf="@id/guidelineV01"
  231. app:layout_constraintRight_toRightOf="@id/guidelineV02"
  232. app:layout_constraintBottom_toBottomOf="@id/guidelineH06"
  233. app:layout_constraintTop_toTopOf="@id/guidelineH05"
  234. />
  235. <Button
  236. android:id="@+id/button3"
  237. android:layout_width="0dp"
  238. android:layout_height="0dp"
  239. app:layout_constraintLeft_toLeftOf="@id/guidelineV02"
  240. app:layout_constraintRight_toRightOf="@id/guidelineV03"
  241. app:layout_constraintBottom_toBottomOf="@id/guidelineH06"
  242. app:layout_constraintTop_toTopOf="@id/guidelineH05"
  243. />
  244. <Button
  245. android:id="@+id/buttonWynik"
  246. android:layout_width="0dp"
  247. android:layout_height="0dp"
  248. app:layout_constraintLeft_toLeftOf="@id/guidelineV03"
  249. app:layout_constraintRight_toRightOf="parent"
  250. app:layout_constraintBottom_toBottomOf="parent"
  251. app:layout_constraintTop_toTopOf="@id/guidelineH05"
  252. />
  253. <Button
  254. android:id="@+id/buttonPlusMinus"
  255. android:layout_width="0dp"
  256. android:layout_height="0dp"
  257. app:layout_constraintLeft_toLeftOf="parent"
  258. app:layout_constraintRight_toRightOf="@id/guidelineV01"
  259. app:layout_constraintBottom_toBottomOf="parent"
  260. app:layout_constraintTop_toTopOf="@id/guidelineH06"
  261. />
  262. <Button
  263. android:id="@+id/button0"
  264. android:layout_width="0dp"
  265. android:layout_height="0dp"
  266. app:layout_constraintLeft_toLeftOf="@id/guidelineV01"
  267. app:layout_constraintRight_toRightOf="@id/guidelineV02"
  268. app:layout_constraintBottom_toBottomOf="parent"
  269. app:layout_constraintTop_toTopOf="@id/guidelineH06"
  270. />
  271. <Button
  272. android:id="@+id/buttonPrzecinek"
  273. android:layout_width="0dp"
  274. android:layout_height="0dp"
  275. app:layout_constraintLeft_toLeftOf="@id/guidelineV02"
  276. app:layout_constraintRight_toRightOf="@id/guidelineV03"
  277. app:layout_constraintBottom_toBottomOf="parent"
  278. app:layout_constraintTop_toTopOf="@id/guidelineH06"
  279. />
  280. </androidx.constraintlayout.widget.ConstraintLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement