‫Welcome back.
‫In this video we're going to design the layout of our project.
‫I'll copy these two images from my desktop to the drawable folder inside my project, and make sure
‫that the names starts with letters and small letters.
‫And all the letters are small letters, no capital letters in the names of the images.
‫This is BAC one and BAC two.
‫These are the backgrounds that I'll use in my project.
‫Go to activity underscore main dot XML file.
‫And here I need to design this layout.
‫I'll change this text from Hello World to Welcome to Lottery Generator app.
‫Drag and drop this text view to the top and remove this constraint.
‫Then I'll add text size as 32 SP and this is good.
‫Make sure that the gravity is center in order to center this text.
‫Then I'll apply the background attribute and I'll use black one for this activity.
‫Also I need to drag this text above and this is good.
‫And here I'll create an edit text to get the user name Matchparent for the width and Wrapcontent for
‫the height.
‫ID would be edit text name hint.
‫Enter your name and I need to drag and drop this edit text down to here.
‫Okay in further constraints.
‫And this is good.
‫This is our edit text.
‫Also I can add some margin.
‫So margin left 20 dpi and margin right 20 dpi.
‫And this is good.
‫I'll create another view which is a button.
‫And this is good.
‫Again, drag and drop this button to here and you can add the constraints under the edit text.
‫And to the left and to the right.
‫Here we go.
‫This is our layout.
‫Also, you can decrease the size of this text from 32 to 28.
‫Gum.
‫Good.
‫And you can remove the app keyword and drag and drop it to center in the middle.
‫Okay, this is a very good and nice layout that we designed here for our main activity.