Advertisement
Guest User

Untitled

a guest
Mar 25th, 2017
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 3.11 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <android.support.constraint.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.    android:background="@drawable/blackboard"
  8.    android:orientation="vertical"
  9.    tools:context="com.example.izabelawojciak.hungman.MainActivity">
  10.  
  11.     <TextView
  12.        android:id="@+id/header"
  13.        android:layout_width="wrap_content"
  14.        android:layout_height="wrap_content"
  15.        android:layout_gravity="center_horizontal"
  16.        android:text="@string/guessTheWord"
  17.        android:textSize="30sp"
  18.        app:layout_constraintTop_toTopOf="parent"
  19.        app:layout_constraintLeft_toLeftOf="parent"
  20.        app:layout_constraintRight_toRightOf="parent"/>
  21.  
  22.     <ImageView
  23.        android:id="@+id/hangman"
  24.        android:layout_width="wrap_content"
  25.        android:layout_height="wrap_content"
  26.        android:src="@drawable/hangman9"
  27.        app:layout_constraintTop_toBottomOf="@+id/header"
  28.        app:layout_constraintLeft_toLeftOf="parent"
  29.        app:layout_constraintRight_toRightOf="parent"
  30.        app:layout_constraintBottom_toTopOf="@+id/secretWorld"/>
  31.  
  32.     <TextView
  33.        android:id="@+id/secretWord"
  34.        android:layout_width="wrap_content"
  35.        android:layout_height="wrap_content"
  36.        android:text="_ _ _ _ _ _"
  37.        android:textSize="30sp"
  38.        app:layout_constraintBottom_toTopOf="@+id/keyboard"
  39.        app:layout_constraintLeft_toLeftOf="parent"
  40.        app:layout_constraintRight_toRightOf="parent"/>
  41.  
  42.  
  43.     <LinearLayout
  44.        android:layout_width="wrap_content"
  45.        android:layout_height="wrap_content"
  46.        android:id="@+id/buttons"
  47.        android:orientation="horizontal"
  48.        app:layout_constraintBottom_toBottomOf="parent"
  49.        app:layout_constraintLeft_toLeftOf="parent"
  50.        app:layout_constraintRight_toRightOf="parent">
  51.  
  52.         <ImageView
  53.            android:id="@+id/newGameButton"
  54.            android:layout_width="wrap_content"
  55.            android:layout_height="wrap_content"
  56.            android:src="@drawable/playagain"
  57.            android:onClick="onClickNewGame"/>
  58.  
  59.         <ImageView
  60.            android:id="@+id/menuButton"
  61.            android:layout_width="wrap_content"
  62.            android:layout_height="wrap_content"
  63.            android:src="@drawable/menu"
  64.            android:onClick="onClickBackToMenu"/>
  65.  
  66.     </LinearLayout>
  67.  
  68.     <com.example.izabelawojciak.hungman.Keyboard
  69.        android:id="@+id/keyboard"
  70.        android:layout_width="0dp"
  71.        android:layout_height="0dp"
  72.        android:layout_gravity="center_horizontal"
  73.        android:rowCount="4"
  74.        android:columnCount="9"
  75.        app:layout_constraintBottom_toTopOf="@+id/buttons"
  76.        app:layout_constraintLeft_toLeftOf="parent"
  77.        app:layout_constraintRight_toRightOf="parent"
  78.        app:layout_constraintTop_toBottomOf="@+id/secretWord"/>
  79.  
  80. </android.support.constraint.ConstraintLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement