Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="utf-8"?>
- <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto"
- xmlns:tools="http://schemas.android.com/tools"
- android:id="@+id/main"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:background="@drawable/game_bg"
- tools:context=".MainActivity">
- <ImageButton
- android:id="@+id/homeBtn"
- android:layout_width="50dp"
- android:layout_height="50dp"
- android:layout_marginStart="16dp"
- android:layout_marginTop="16dp"
- android:background="#00FFFFFF"
- android:scaleType="fitCenter"
- android:tint="#437798"
- app:layout_constraintStart_toStartOf="parent"
- app:layout_constraintTop_toTopOf="parent"
- app:srcCompat="@drawable/home" />
- <ImageButton
- android:id="@+id/retryBtn"
- android:layout_width="50dp"
- android:layout_height="50dp"
- android:layout_marginTop="16dp"
- android:layout_marginEnd="16dp"
- android:background="#00FFFFFF"
- android:scaleType="fitCenter"
- android:tint="#437798"
- app:layout_constraintEnd_toEndOf="parent"
- app:layout_constraintTop_toTopOf="parent"
- app:srcCompat="@drawable/reload" />
- <LinearLayout
- android:id="@+id/linearLayout"
- android:layout_width="0dp"
- android:layout_height="wrap_content"
- android:orientation="vertical"
- app:layout_constraintBottom_toBottomOf="parent"
- app:layout_constraintEnd_toEndOf="parent"
- app:layout_constraintStart_toStartOf="parent"
- app:layout_constraintTop_toBottomOf="@+id/retryBtn">
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:orientation="vertical">
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:gravity="center"
- android:orientation="horizontal">
- <androidx.cardview.widget.CardView
- android:layout_width="0dp"
- android:layout_height="wrap_content"
- android:layout_margin="5dp"
- android:layout_weight="1"
- app:cardBackgroundColor="#3889BD"
- app:cardCornerRadius="10dp"
- app:cardElevation="5dp">
- <androidx.cardview.widget.CardView
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_margin="5dp"
- app:cardCornerRadius="10dp">
- <ImageView
- android:id="@+id/one"
- android:layout_width="120dp"
- android:layout_height="120dp"
- android:scaleType="fitCenter"
- app:srcCompat="@drawable/flipout" />
- </androidx.cardview.widget.CardView>
- </androidx.cardview.widget.CardView>
- <androidx.cardview.widget.CardView
- android:layout_width="0dp"
- android:layout_height="wrap_content"
- android:layout_margin="5dp"
- android:layout_weight="1"
- app:cardBackgroundColor="#3889BD"
- app:cardCornerRadius="10dp"
- app:cardElevation="5dp">
- <androidx.cardview.widget.CardView
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_margin="5dp"
- app:cardCornerRadius="10dp">
- <ImageView
- android:id="@+id/two"
- android:layout_width="120dp"
- android:layout_height="120dp"
- android:scaleType="fitCenter"
- app:srcCompat="@drawable/flipout" />
- </androidx.cardview.widget.CardView>
- </androidx.cardview.widget.CardView>
- <androidx.cardview.widget.CardView
- android:layout_width="0dp"
- android:layout_height="wrap_content"
- android:layout_margin="5dp"
- android:layout_weight="1"
- app:cardBackgroundColor="#3889BD"
- app:cardCornerRadius="10dp"
- app:cardElevation="5dp">
- <androidx.cardview.widget.CardView
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_margin="5dp"
- app:cardCornerRadius="10dp">
- <ImageView
- android:id="@+id/three"
- android:layout_width="120dp"
- android:layout_height="120dp"
- android:scaleType="fitCenter"
- app:srcCompat="@drawable/flipout" />
- </androidx.cardview.widget.CardView>
- </androidx.cardview.widget.CardView>
- </LinearLayout>
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:gravity="center"
- android:orientation="horizontal">
- <androidx.cardview.widget.CardView
- android:layout_width="0dp"
- android:layout_height="wrap_content"
- android:layout_margin="5dp"
- android:layout_weight="1"
- app:cardBackgroundColor="#3889BD"
- app:cardCornerRadius="10dp"
- app:cardElevation="5dp">
- <androidx.cardview.widget.CardView
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_margin="5dp"
- app:cardCornerRadius="10dp">
- <ImageView
- android:id="@+id/four"
- android:layout_width="120dp"
- android:layout_height="120dp"
- android:scaleType="fitCenter"
- app:srcCompat="@drawable/flipout" />
- </androidx.cardview.widget.CardView>
- </androidx.cardview.widget.CardView>
- <androidx.cardview.widget.CardView
- android:layout_width="0dp"
- android:layout_height="wrap_content"
- android:layout_margin="5dp"
- android:layout_weight="1"
- app:cardBackgroundColor="#3889BD"
- app:cardCornerRadius="10dp"
- app:cardElevation="5dp">
- <androidx.cardview.widget.CardView
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_margin="5dp"
- app:cardCornerRadius="10dp">
- <ImageView
- android:id="@+id/five"
- android:layout_width="120dp"
- android:layout_height="120dp"
- android:scaleType="fitCenter"
- app:srcCompat="@drawable/flipout" />
- </androidx.cardview.widget.CardView>
- </androidx.cardview.widget.CardView>
- <androidx.cardview.widget.CardView
- android:layout_width="0dp"
- android:layout_height="wrap_content"
- android:layout_margin="5dp"
- android:layout_weight="1"
- app:cardBackgroundColor="#3889BD"
- app:cardCornerRadius="10dp"
- app:cardElevation="5dp">
- <androidx.cardview.widget.CardView
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_margin="5dp"
- app:cardCornerRadius="10dp">
- <ImageView
- android:id="@+id/six"
- android:layout_width="120dp"
- android:layout_height="120dp"
- android:scaleType="fitCenter"
- app:srcCompat="@drawable/flipout" />
- </androidx.cardview.widget.CardView>
- </androidx.cardview.widget.CardView>
- </LinearLayout>
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:gravity="center"
- android:orientation="horizontal">
- <androidx.cardview.widget.CardView
- android:layout_width="0dp"
- android:layout_height="wrap_content"
- android:layout_margin="5dp"
- android:layout_weight="1"
- app:cardBackgroundColor="#3889BD"
- app:cardCornerRadius="10dp"
- app:cardElevation="5dp">
- <androidx.cardview.widget.CardView
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_margin="5dp"
- app:cardCornerRadius="10dp">
- <ImageView
- android:id="@+id/seven"
- android:layout_width="120dp"
- android:layout_height="120dp"
- android:scaleType="fitCenter"
- app:srcCompat="@drawable/flipout" />
- </androidx.cardview.widget.CardView>
- </androidx.cardview.widget.CardView>
- <androidx.cardview.widget.CardView
- android:layout_width="0dp"
- android:layout_height="wrap_content"
- android:layout_margin="5dp"
- android:layout_weight="1"
- app:cardBackgroundColor="#3889BD"
- app:cardCornerRadius="10dp"
- app:cardElevation="5dp">
- <androidx.cardview.widget.CardView
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_margin="5dp"
- app:cardCornerRadius="10dp">
- <ImageView
- android:id="@+id/eight"
- android:layout_width="120dp"
- android:layout_height="120dp"
- android:scaleType="fitCenter"
- app:srcCompat="@drawable/flipout" />
- </androidx.cardview.widget.CardView>
- </androidx.cardview.widget.CardView>
- <androidx.cardview.widget.CardView
- android:layout_width="0dp"
- android:layout_height="wrap_content"
- android:layout_margin="5dp"
- android:layout_weight="1"
- app:cardBackgroundColor="#3889BD"
- app:cardCornerRadius="10dp"
- app:cardElevation="5dp">
- <androidx.cardview.widget.CardView
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_margin="5dp"
- app:cardCornerRadius="10dp">
- <ImageView
- android:id="@+id/nine"
- android:layout_width="120dp"
- android:layout_height="120dp"
- android:scaleType="fitCenter"
- app:srcCompat="@drawable/flipout" />
- </androidx.cardview.widget.CardView>
- </androidx.cardview.widget.CardView>
- </LinearLayout>
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:gravity="center"
- android:orientation="horizontal">
- <androidx.cardview.widget.CardView
- android:layout_width="0dp"
- android:layout_height="wrap_content"
- android:layout_margin="5dp"
- android:layout_weight="1"
- app:cardBackgroundColor="#3889BD"
- app:cardCornerRadius="10dp"
- app:cardElevation="5dp">
- <androidx.cardview.widget.CardView
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_margin="5dp"
- app:cardCornerRadius="10dp">
- <ImageView
- android:id="@+id/ten"
- android:layout_width="120dp"
- android:layout_height="120dp"
- android:scaleType="fitCenter"
- app:srcCompat="@drawable/flipout" />
- </androidx.cardview.widget.CardView>
- </androidx.cardview.widget.CardView>
- <androidx.cardview.widget.CardView
- android:layout_width="0dp"
- android:layout_height="wrap_content"
- android:layout_margin="5dp"
- android:layout_weight="1"
- app:cardBackgroundColor="#3889BD"
- app:cardCornerRadius="10dp"
- app:cardElevation="5dp">
- <androidx.cardview.widget.CardView
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_margin="5dp"
- app:cardCornerRadius="10dp">
- <ImageView
- android:id="@+id/eleven"
- android:layout_width="120dp"
- android:layout_height="120dp"
- android:scaleType="fitCenter"
- app:srcCompat="@drawable/flipout" />
- </androidx.cardview.widget.CardView>
- </androidx.cardview.widget.CardView>
- <androidx.cardview.widget.CardView
- android:layout_width="0dp"
- android:layout_height="wrap_content"
- android:layout_margin="5dp"
- android:layout_weight="1"
- app:cardBackgroundColor="#3889BD"
- app:cardCornerRadius="10dp"
- app:cardElevation="5dp">
- <androidx.cardview.widget.CardView
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_margin="5dp"
- app:cardCornerRadius="10dp">
- <ImageView
- android:id="@+id/twelve"
- android:layout_width="120dp"
- android:layout_height="120dp"
- android:scaleType="fitCenter"
- app:srcCompat="@drawable/flipout" />
- </androidx.cardview.widget.CardView>
- </androidx.cardview.widget.CardView>
- </LinearLayout>
- </LinearLayout>
- </LinearLayout>
- <TextView
- android:id="@+id/textView2"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:fontFamily="sans-serif-black"
- android:text="PAIR ALL CARDS\nTO WIN"
- android:textAlignment="center"
- android:textColor="#3E3939"
- android:textSize="24sp"
- android:textStyle="bold"
- app:layout_constraintBottom_toTopOf="@+id/linearLayout"
- app:layout_constraintEnd_toStartOf="@+id/retryBtn"
- app:layout_constraintStart_toEndOf="@+id/homeBtn"
- app:layout_constraintTop_toTopOf="parent" />
- </androidx.constraintlayout.widget.ConstraintLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement