We'll add string resources for the content descriptions a bit later in this tutorial. We set the image's left and top padding to 0 so that we can position the other images relative to its position. Remember to modify the drawable name if the image you're using is named differently. Inside the relative layout you just created, start by adding the gallows image as shown below. Inside the linear layout that we added in the previous tutorial, enter a relative layout to hold the seven images that will make up the gallows area. If you are starting with the demo images we included in the previous tutorial, you can use the values listed in this tutorial. One approach is to import the images into a image editor, such as Adobe's Photoshop, position them manually, and then use their x and y positions relative to the gallows image to work out the correct positions to apply to each image in the XML layout. The positions you set for these elements need to be determined by the image elements that you are using. We will place these inside the game's layout in this tutorial. In the previous tutorial, we created images for the gallows and for the six body parts. To refresh your memory, this is what the final game will look like.
![super hangman pro super hangman pro](https://i.pinimg.com/originals/09/e8/fc/09e8fc9e8407311bc788cd3d88238e9a.png)
We will also store the player's answers in XML, retrieve them, and choose a random word using Java. In the second tutorial, we will zoom in on the game's layout.Ĭreating the game's layout will involve using an adapter to create letter buttons and positioning the body parts we will display when users select incorrect letters. In the first tutorial, we set the application up to present two screens to the user and we also made a start with the user interface elements, the images and shape drawables to be precise.
![super hangman pro super hangman pro](https://img.poki.com/cdn-cgi/image/quality=78,width=600,height=600,fit=cover,g=0.56x0.49,f=auto/bb23f796-d4ba-4732-b096-7563d78b5d78.jpg)
#Super hangman pro android
In this series, we are creating a Hangman game for the Android platform.