Advertisement
SenpaiZero

Untitled

May 20th, 2024
19
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 17.12 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:id="@+id/main"
  6. android:layout_width="match_parent"
  7. android:layout_height="match_parent"
  8. android:background="@drawable/game_bg"
  9. tools:context=".MainActivity">
  10.  
  11. <ImageButton
  12. android:id="@+id/homeBtn"
  13. android:layout_width="50dp"
  14. android:layout_height="50dp"
  15. android:layout_marginStart="16dp"
  16. android:layout_marginTop="16dp"
  17. android:background="#00FFFFFF"
  18. android:scaleType="fitCenter"
  19. android:tint="#437798"
  20. app:layout_constraintStart_toStartOf="parent"
  21. app:layout_constraintTop_toTopOf="parent"
  22. app:srcCompat="@drawable/home" />
  23.  
  24. <ImageButton
  25. android:id="@+id/retryBtn"
  26. android:layout_width="50dp"
  27. android:layout_height="50dp"
  28. android:layout_marginTop="16dp"
  29. android:layout_marginEnd="16dp"
  30. android:background="#00FFFFFF"
  31. android:scaleType="fitCenter"
  32. android:tint="#437798"
  33. app:layout_constraintEnd_toEndOf="parent"
  34. app:layout_constraintTop_toTopOf="parent"
  35. app:srcCompat="@drawable/reload" />
  36.  
  37. <LinearLayout
  38. android:id="@+id/linearLayout"
  39. android:layout_width="0dp"
  40. android:layout_height="wrap_content"
  41. android:orientation="vertical"
  42. app:layout_constraintBottom_toBottomOf="parent"
  43. app:layout_constraintEnd_toEndOf="parent"
  44. app:layout_constraintStart_toStartOf="parent"
  45. app:layout_constraintTop_toBottomOf="@+id/retryBtn">
  46.  
  47. <LinearLayout
  48. android:layout_width="match_parent"
  49. android:layout_height="wrap_content"
  50. android:orientation="vertical">
  51.  
  52. <LinearLayout
  53. android:layout_width="match_parent"
  54. android:layout_height="match_parent"
  55. android:gravity="center"
  56. android:orientation="horizontal">
  57.  
  58. <androidx.cardview.widget.CardView
  59. android:layout_width="0dp"
  60. android:layout_height="wrap_content"
  61. android:layout_margin="5dp"
  62. android:layout_weight="1"
  63. app:cardBackgroundColor="#3889BD"
  64. app:cardCornerRadius="10dp"
  65. app:cardElevation="5dp">
  66.  
  67. <androidx.cardview.widget.CardView
  68. android:layout_width="match_parent"
  69. android:layout_height="wrap_content"
  70. android:layout_margin="5dp"
  71. app:cardCornerRadius="10dp">
  72.  
  73. <ImageView
  74. android:id="@+id/one"
  75. android:layout_width="120dp"
  76. android:layout_height="120dp"
  77. android:scaleType="centerCrop"
  78. app:srcCompat="@drawable/flipout" />
  79. </androidx.cardview.widget.CardView>
  80.  
  81. </androidx.cardview.widget.CardView>
  82.  
  83. <androidx.cardview.widget.CardView
  84. android:layout_width="0dp"
  85. android:layout_height="wrap_content"
  86. android:layout_margin="5dp"
  87. android:layout_weight="1"
  88. app:cardBackgroundColor="#3889BD"
  89. app:cardCornerRadius="10dp"
  90. app:cardElevation="5dp">
  91.  
  92. <androidx.cardview.widget.CardView
  93. android:layout_width="match_parent"
  94. android:layout_height="wrap_content"
  95. android:layout_margin="5dp"
  96. app:cardCornerRadius="10dp">
  97.  
  98. <ImageView
  99. android:id="@+id/two"
  100. android:layout_width="120dp"
  101. android:layout_height="120dp"
  102. android:scaleType="centerCrop"
  103. app:srcCompat="@drawable/flipout" />
  104. </androidx.cardview.widget.CardView>
  105.  
  106. </androidx.cardview.widget.CardView>
  107.  
  108. <androidx.cardview.widget.CardView
  109. android:layout_width="0dp"
  110. android:layout_height="wrap_content"
  111. android:layout_margin="5dp"
  112. android:layout_weight="1"
  113. app:cardBackgroundColor="#3889BD"
  114. app:cardCornerRadius="10dp"
  115. app:cardElevation="5dp">
  116.  
  117. <androidx.cardview.widget.CardView
  118. android:layout_width="match_parent"
  119. android:layout_height="wrap_content"
  120. android:layout_margin="5dp"
  121. app:cardCornerRadius="10dp">
  122.  
  123. <ImageView
  124. android:id="@+id/three"
  125. android:layout_width="120dp"
  126. android:layout_height="120dp"
  127. android:scaleType="centerCrop"
  128. app:srcCompat="@drawable/flipout" />
  129. </androidx.cardview.widget.CardView>
  130.  
  131. </androidx.cardview.widget.CardView>
  132. </LinearLayout>
  133.  
  134. <LinearLayout
  135. android:layout_width="match_parent"
  136. android:layout_height="match_parent"
  137. android:gravity="center"
  138. android:orientation="horizontal">
  139.  
  140. <androidx.cardview.widget.CardView
  141. android:layout_width="0dp"
  142. android:layout_height="wrap_content"
  143. android:layout_margin="5dp"
  144. android:layout_weight="1"
  145. app:cardBackgroundColor="#3889BD"
  146. app:cardCornerRadius="10dp"
  147. app:cardElevation="5dp">
  148.  
  149. <androidx.cardview.widget.CardView
  150. android:layout_width="match_parent"
  151. android:layout_height="wrap_content"
  152. android:layout_margin="5dp"
  153. app:cardCornerRadius="10dp">
  154.  
  155. <ImageView
  156. android:id="@+id/four"
  157. android:layout_width="120dp"
  158. android:layout_height="120dp"
  159. android:scaleType="centerCrop"
  160. app:srcCompat="@drawable/flipout" />
  161. </androidx.cardview.widget.CardView>
  162.  
  163. </androidx.cardview.widget.CardView>
  164.  
  165. <androidx.cardview.widget.CardView
  166. android:layout_width="0dp"
  167. android:layout_height="wrap_content"
  168. android:layout_margin="5dp"
  169. android:layout_weight="1"
  170. app:cardBackgroundColor="#3889BD"
  171. app:cardCornerRadius="10dp"
  172. app:cardElevation="5dp">
  173.  
  174. <androidx.cardview.widget.CardView
  175. android:layout_width="match_parent"
  176. android:layout_height="wrap_content"
  177. android:layout_margin="5dp"
  178. app:cardCornerRadius="10dp">
  179.  
  180. <ImageView
  181. android:id="@+id/five"
  182. android:layout_width="120dp"
  183. android:layout_height="120dp"
  184. android:scaleType="centerCrop"
  185. app:srcCompat="@drawable/flipout" />
  186. </androidx.cardview.widget.CardView>
  187.  
  188. </androidx.cardview.widget.CardView>
  189.  
  190. <androidx.cardview.widget.CardView
  191. android:layout_width="0dp"
  192. android:layout_height="wrap_content"
  193. android:layout_margin="5dp"
  194. android:layout_weight="1"
  195. app:cardBackgroundColor="#3889BD"
  196. app:cardCornerRadius="10dp"
  197. app:cardElevation="5dp">
  198.  
  199. <androidx.cardview.widget.CardView
  200. android:layout_width="match_parent"
  201. android:layout_height="wrap_content"
  202. android:layout_margin="5dp"
  203. app:cardCornerRadius="10dp">
  204.  
  205. <ImageView
  206. android:id="@+id/six"
  207. android:layout_width="120dp"
  208. android:layout_height="120dp"
  209. android:scaleType="centerCrop"
  210. app:srcCompat="@drawable/flipout" />
  211. </androidx.cardview.widget.CardView>
  212.  
  213. </androidx.cardview.widget.CardView>
  214. </LinearLayout>
  215.  
  216. <LinearLayout
  217. android:layout_width="match_parent"
  218. android:layout_height="match_parent"
  219. android:gravity="center"
  220. android:orientation="horizontal">
  221.  
  222. <androidx.cardview.widget.CardView
  223. android:layout_width="0dp"
  224. android:layout_height="wrap_content"
  225. android:layout_margin="5dp"
  226. android:layout_weight="1"
  227. app:cardBackgroundColor="#3889BD"
  228. app:cardCornerRadius="10dp"
  229. app:cardElevation="5dp">
  230.  
  231. <androidx.cardview.widget.CardView
  232. android:layout_width="match_parent"
  233. android:layout_height="wrap_content"
  234. android:layout_margin="5dp"
  235. app:cardCornerRadius="10dp">
  236.  
  237. <ImageView
  238. android:id="@+id/seven"
  239. android:layout_width="120dp"
  240. android:layout_height="120dp"
  241. android:scaleType="centerCrop"
  242. app:srcCompat="@drawable/flipout" />
  243. </androidx.cardview.widget.CardView>
  244.  
  245. </androidx.cardview.widget.CardView>
  246.  
  247. <androidx.cardview.widget.CardView
  248. android:layout_width="0dp"
  249. android:layout_height="wrap_content"
  250. android:layout_margin="5dp"
  251. android:layout_weight="1"
  252. app:cardBackgroundColor="#3889BD"
  253. app:cardCornerRadius="10dp"
  254. app:cardElevation="5dp">
  255.  
  256. <androidx.cardview.widget.CardView
  257. android:layout_width="match_parent"
  258. android:layout_height="wrap_content"
  259. android:layout_margin="5dp"
  260. app:cardCornerRadius="10dp">
  261.  
  262. <ImageView
  263. android:id="@+id/eight"
  264. android:layout_width="120dp"
  265. android:layout_height="120dp"
  266. android:scaleType="centerCrop"
  267. app:srcCompat="@drawable/flipout" />
  268. </androidx.cardview.widget.CardView>
  269.  
  270. </androidx.cardview.widget.CardView>
  271.  
  272. <androidx.cardview.widget.CardView
  273. android:layout_width="0dp"
  274. android:layout_height="wrap_content"
  275. android:layout_margin="5dp"
  276. android:layout_weight="1"
  277. app:cardBackgroundColor="#3889BD"
  278. app:cardCornerRadius="10dp"
  279. app:cardElevation="5dp">
  280.  
  281. <androidx.cardview.widget.CardView
  282. android:layout_width="match_parent"
  283. android:layout_height="wrap_content"
  284. android:layout_margin="5dp"
  285. app:cardCornerRadius="10dp">
  286.  
  287. <ImageView
  288. android:id="@+id/nine"
  289. android:layout_width="120dp"
  290. android:layout_height="120dp"
  291. android:scaleType="centerCrop"
  292. app:srcCompat="@drawable/flipout" />
  293. </androidx.cardview.widget.CardView>
  294.  
  295. </androidx.cardview.widget.CardView>
  296. </LinearLayout>
  297.  
  298. <LinearLayout
  299. android:layout_width="match_parent"
  300. android:layout_height="wrap_content"
  301. android:gravity="center"
  302. android:orientation="horizontal">
  303.  
  304. <androidx.cardview.widget.CardView
  305. android:layout_width="0dp"
  306. android:layout_height="wrap_content"
  307. android:layout_margin="5dp"
  308. android:layout_weight="1"
  309. app:cardBackgroundColor="#3889BD"
  310. app:cardCornerRadius="10dp"
  311. app:cardElevation="5dp">
  312.  
  313. <androidx.cardview.widget.CardView
  314. android:layout_width="match_parent"
  315. android:layout_height="wrap_content"
  316. android:layout_margin="5dp"
  317. app:cardCornerRadius="10dp">
  318.  
  319. <ImageView
  320. android:id="@+id/ten"
  321. android:layout_width="120dp"
  322. android:layout_height="120dp"
  323. android:scaleType="centerCrop"
  324. app:srcCompat="@drawable/flipout" />
  325. </androidx.cardview.widget.CardView>
  326.  
  327. </androidx.cardview.widget.CardView>
  328.  
  329. <androidx.cardview.widget.CardView
  330. android:layout_width="0dp"
  331. android:layout_height="wrap_content"
  332. android:layout_margin="5dp"
  333. android:layout_weight="1"
  334. app:cardBackgroundColor="#3889BD"
  335. app:cardCornerRadius="10dp"
  336. app:cardElevation="5dp">
  337.  
  338. <androidx.cardview.widget.CardView
  339. android:layout_width="match_parent"
  340. android:layout_height="wrap_content"
  341. android:layout_margin="5dp"
  342. app:cardCornerRadius="10dp">
  343.  
  344. <ImageView
  345. android:id="@+id/eleven"
  346. android:layout_width="120dp"
  347. android:layout_height="120dp"
  348. android:scaleType="centerCrop"
  349. app:srcCompat="@drawable/flipout" />
  350. </androidx.cardview.widget.CardView>
  351.  
  352. </androidx.cardview.widget.CardView>
  353.  
  354. <androidx.cardview.widget.CardView
  355. android:layout_width="0dp"
  356. android:layout_height="wrap_content"
  357. android:layout_margin="5dp"
  358. android:layout_weight="1"
  359. app:cardBackgroundColor="#3889BD"
  360. app:cardCornerRadius="10dp"
  361. app:cardElevation="5dp">
  362.  
  363. <androidx.cardview.widget.CardView
  364. android:layout_width="match_parent"
  365. android:layout_height="wrap_content"
  366. android:layout_margin="5dp"
  367. app:cardCornerRadius="10dp">
  368.  
  369. <ImageView
  370. android:id="@+id/twelve"
  371. android:layout_width="120dp"
  372. android:layout_height="120dp"
  373. android:scaleType="centerCrop"
  374. app:srcCompat="@drawable/flipout" />
  375. </androidx.cardview.widget.CardView>
  376.  
  377. </androidx.cardview.widget.CardView>
  378. </LinearLayout>
  379.  
  380. </LinearLayout>
  381. </LinearLayout>
  382.  
  383. <TextView
  384. android:id="@+id/textView2"
  385. android:layout_width="wrap_content"
  386. android:layout_height="wrap_content"
  387. android:fontFamily="sans-serif-black"
  388. android:text="PAIR ALL CARDS\nTO WIN"
  389. android:textAlignment="center"
  390. android:textColor="#3E3939"
  391. android:textSize="24sp"
  392. android:textStyle="bold"
  393. app:layout_constraintBottom_toTopOf="@+id/linearLayout"
  394. app:layout_constraintEnd_toStartOf="@+id/retryBtn"
  395. app:layout_constraintHorizontal_bias="0.489"
  396. app:layout_constraintStart_toEndOf="@+id/homeBtn"
  397. app:layout_constraintTop_toTopOf="parent"
  398. app:layout_constraintVertical_bias="0.542" />
  399. </androidx.constraintlayout.widget.ConstraintLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement