RELATIVE LAYOUT IN KOTLIN ANDROID | ANDROID KOTLIN RELATIVELAYOUT | KOTLIN TUTORIAL FOR BEGINNERS

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hello guys welcome to my channel today in this video tutorial we are going to learn about relative layout in android cortland so let's start so when you create a project by default we have constraint layout here so we have chair i have changed this into a relative layout and now we will add widgets or controls on this relative layout now if i go to design and now if i drag in a button here so now you see a button here now if i go to code again i'll make this match parent and now if i go to design you can see that it matched sp it's parent now i want to add in another button so i have to arrange this button according to this button or to this uh main layout so if i go to code and here this is this button this one is our second button so if i i can arrange this according to the audio of this button 7 so i'll use below so and write layout below at id uh button seven okay now if i go to design now it comes below button 7 and now i can give it some margins from both sides from this side as well as from their side so i'll come to code and i will use a margin start and then i will give it 10 db now if i go to design now you can see it is 10 dp from this side now i will again go here and from this designer i will add in another button now you can see that it is uh it has taken uh that zero zero position so i'll come to this code and uh for this button nine so what this button line i will use here um layout below this one um at id um button seven and now if i go here to design now you can see it is here with this button it so now i want it here here so i'll uh used to write off id button [Music] 8 and now if i go to design now you can see that that button moved here now you can apply margins on it now if i drag in another i drag in this image i'll select this atar and okay and uh it has also taken this zero zero position so i'll uh go here so i'll come to this image and i want this image in the center of the parent layout so i'll use [Music] center and parent and i'll use true and now if i go to design now you can see that the image is uh at the center of the parent layout so in this way you can arrange uh wedges and controls and relative layout according to other widgets and according to the parent layout so i think that's all for today i hope you like the video if you like the video please like subscribe and comment and
Info
Channel: Programming Guru
Views: 18
Rating: undefined out of 5
Keywords: Programming Guru, Guru Programming, programming, gurru, programminggurru, relativelayout in android studio, layouts in android, android xml design, android development tutorial, android tutorial, android studio layout, android studio design view, relativelayout, relative layout in android, relative layout, relativelayout android, relativelayout in android, android studio
Id: 1B-GlfSpuhA
Channel Id: undefined
Length: 4min 30sec (270 seconds)
Published: Mon Nov 29 2021
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.