Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?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"
- android:background="@drawable/blackboard"
- android:orientation="vertical"
- tools:context="com.example.izabelawojciak.hungman.MainActivity">
- <TextView
- android:id="@+id/header"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_gravity="center_horizontal"
- android:text="@string/guessTheWord"
- android:textSize="30sp"
- app:layout_constraintTop_toTopOf="parent"
- app:layout_constraintLeft_toLeftOf="parent"
- app:layout_constraintRight_toRightOf="parent"/>
- <ImageView
- android:id="@+id/hangman"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:src="@drawable/hangman9"
- app:layout_constraintTop_toBottomOf="@+id/header"
- app:layout_constraintLeft_toLeftOf="parent"
- app:layout_constraintRight_toRightOf="parent"
- app:layout_constraintBottom_toTopOf="@+id/secretWorld"/>
- <TextView
- android:id="@+id/secretWord"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="_ _ _ _ _ _"
- android:textSize="30sp"
- app:layout_constraintBottom_toTopOf="@+id/keyboard"
- app:layout_constraintLeft_toLeftOf="parent"
- app:layout_constraintRight_toRightOf="parent"/>
- <LinearLayout
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:id="@+id/buttons"
- android:orientation="horizontal"
- app:layout_constraintBottom_toBottomOf="parent"
- app:layout_constraintLeft_toLeftOf="parent"
- app:layout_constraintRight_toRightOf="parent">
- <ImageView
- android:id="@+id/newGameButton"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:src="@drawable/playagain"
- android:onClick="onClickNewGame"/>
- <ImageView
- android:id="@+id/menuButton"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:src="@drawable/menu"
- android:onClick="onClickBackToMenu"/>
- </LinearLayout>
- <com.example.izabelawojciak.hungman.Keyboard
- android:id="@+id/keyboard"
- android:layout_width="0dp"
- android:layout_height="0dp"
- android:layout_gravity="center_horizontal"
- android:rowCount="4"
- android:columnCount="9"
- app:layout_constraintBottom_toTopOf="@+id/buttons"
- app:layout_constraintLeft_toLeftOf="parent"
- app:layout_constraintRight_toRightOf="parent"
- app:layout_constraintTop_toBottomOf="@+id/secretWord"/>
- </android.support.constraint.ConstraintLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement