Last active
January 27, 2022 10:43
-
-
Save JaniKibichi/01a89f950055e9372d2abb80c55c7308 to your computer and use it in GitHub Desktop.
Memory Game activity_main xml file
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<android.support.constraint.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:layout_width="match_parent" | |
android:layout_height="match_parent" | |
tools:context="com.mjuaji.memorygame2308.MainActivity"> | |
<LinearLayout | |
android:layout_width="368dp" | |
android:layout_height="wrap_content" | |
android:orientation="horizontal" | |
tools:layout_editor_absoluteX="0dp" | |
tools:layout_editor_absoluteY="8dp"> | |
<TextView | |
android:id="@+id/textView3" | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:layout_weight="1" | |
android:gravity="center" | |
android:text="MemoryGame" | |
android:textAppearance="?android:attr/textAppearanceLarge" | |
android:textSize="30sp" /> | |
</LinearLayout> | |
<LinearLayout | |
android:layout_width="368dp" | |
android:layout_height="wrap_content" | |
android:layout_weight="1" | |
android:gravity="center" | |
android:orientation="vertical" | |
tools:layout_editor_absoluteX="8dp" | |
tools:layout_editor_absoluteY="48dp"> | |
<ImageView | |
android:id="@+id/imageView3" | |
android:layout_width="121dp" | |
android:layout_height="113dp" | |
android:layout_marginBottom="40dp" | |
app:srcCompat="@drawable/mjuaji" /> | |
</LinearLayout> | |
<LinearLayout | |
android:layout_width="368dp" | |
android:layout_height="wrap_content" | |
android:layout_marginTop="40dp" | |
android:gravity="center" | |
android:orientation="vertical" | |
tools:layout_editor_absoluteX="8dp" | |
tools:layout_editor_absoluteY="148dp"> | |
<TextView | |
android:id="@+id/textHiScore" | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:layout_marginTop="40dp" | |
android:gravity="center" | |
android:text="Score : 999" | |
android:textSize="24sp" /> | |
<Button | |
android:id="@+id/button" | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:layout_marginTop="40dp" | |
android:gravity="center" | |
android:text="Play" /> | |
</LinearLayout> | |
</android.support.constraint.ConstraintLayout> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment