Hosted by Dailymotion. For legal issues report at the Copyright Center, report us on DMC, or use the Instant Removal tool.
App Layout in Android Studio - Android Virgin Lesson 3
Description
Android gets me söo hot, you too?\r
\r
In this lesson were going to setup the layout of our pickup app. Here is what our app will look like, two buttons to get clean and dirty pickup lines, and then another screen to display the pickup line, along with a button to try again if theyre not that into you, but im sure they will be. The first layout is set up with the main ivities XML file.\r
\r
So delete hello world by clicking on it and pressing delete, we can also select stuff in the component tree view to the right. Now weve got a blank canvas, select the text view. Were going to change the layout to Linear layout and delete this padding, notice that its highlighted green, this means its referencing another file, if we click on it we see the @ sign, in this case the dimens dot xml in the values folder. Thats a file where you can standardize dimensions. Android handles a lot of defaults this way and when you see an @ sign that means its referencing a file somewhere. For now delete the padding, for this app we dont need more cushion for the pushin. Next well add the attribute android orientation vertical, to make whatever we put into this layout arrange itself vertically. Look back at the design view and well see the padding is gone.\r
\r
Lets split this vertical layout into two halves by adding two relative layouts. Select relative layout, then mouse over linear layout in the component tree and click to add it. You dont need to drag, but you can. Do it one more time for the second half. We dont see much change in the design, to make each relative layout take up half the screen find layout weight in properties and change it to .5, linear layout allows you to weight things inside, weight of 0.5 tells each relative layout to take up half the space.
\r
In this lesson were going to setup the layout of our pickup app. Here is what our app will look like, two buttons to get clean and dirty pickup lines, and then another screen to display the pickup line, along with a button to try again if theyre not that into you, but im sure they will be. The first layout is set up with the main ivities XML file.\r
\r
So delete hello world by clicking on it and pressing delete, we can also select stuff in the component tree view to the right. Now weve got a blank canvas, select the text view. Were going to change the layout to Linear layout and delete this padding, notice that its highlighted green, this means its referencing another file, if we click on it we see the @ sign, in this case the dimens dot xml in the values folder. Thats a file where you can standardize dimensions. Android handles a lot of defaults this way and when you see an @ sign that means its referencing a file somewhere. For now delete the padding, for this app we dont need more cushion for the pushin. Next well add the attribute android orientation vertical, to make whatever we put into this layout arrange itself vertically. Look back at the design view and well see the padding is gone.\r
\r
Lets split this vertical layout into two halves by adding two relative layouts. Select relative layout, then mouse over linear layout in the component tree and click to add it. You dont need to drag, but you can. Do it one more time for the second half. We dont see much change in the design, to make each relative layout take up half the screen find layout weight in properties and change it to .5, linear layout allows you to weight things inside, weight of 0.5 tells each relative layout to take up half the space.
More from User
16:06
Monster High Skulltimate Science Class w/ Frankie Stein Doll Unboxing Toy Playset Review
Jikodaso
06:09
Winter Olympics Edition | Dude Perfect
Jikodaso
07:18
App Layout in Android Studio - Android Virgin Lesson 3
Jikodaso
05:46
turkey ديك رومي يصارع ويصيح بصوت جميل
Jikodaso
05:18
سبونج بوب العاب منوعة | العاب انظيف اسنان سبونج بوب
Jikodaso
04:36
Пранк / Бредогенератор ч.2 [GoshaProductionPrank]
Jikodaso
Related Videos
28:37
FreeBSD 13.0 | What is FreeBSD? | FreeBSD, The Other Unix-Like Operating System | BSD (Berkeley Software Distribution) | Open Source Operating System
FOCUS EXCLUSIVE
00:28
[PDF] The Living Model Railway: Developing, Operating and Enjoying Your Layout (Library of Railway
Earnest Almar
19:05
Software _ System Software _ Operating System _ Functions of OS _ Types of OS
U Knowledge Center
03:56
Audi Q8 TFSI e quattro – System layout, driving modes and operating strategy Animation
AutoMotions
21:08
[HD] HO Scale Operating Session at My Layout on 2 21 2015
Tammyfjordan8234
00:29
Download Android Lollipop: A Beginner s Guide to the Android Operating System PDF Online
LeiaRea