Thanks I have a little problem: the horizontal space between the buttons is good, but the vertical space is bigger !!! Could you help with that please?
just name the buttons as 1 , 2 , 3... rotate the screen, code will fail, it will show more than 2 buttns in one row, if we want to see only 2 btns in 1 row, how to do that?
The code fails because it is inside the Constraint Layout. When you add components inside the Constraint Layout, you have to center them vertically and horizontally so that whenever you rotate the screen, the code doesn't fail. I have shown this concept in my Constraint layout tutorial video, you can check it out here : ruclips.net/video/6Ixw8rzThfw/видео.html Now, to fix this code you will have to do the same for the GRID LAYOUT as it is inside the Constraint layout and then the buttons are inside the Grid layout. So the Constraint Layout becomes the parent of Grid Layout, and Grid Layout becomes the parent of all the buttons. So just center the Grid Layout Vertically and Horizontally in Parent and the code will get fixed 👍 Or else, just copy this in side the Grid Layout section : Before : After : Copy the AFTER part.
Sir it very useful tutorial..I success full run my grid layout..but sir I want to add above the grid layout text view and image view it's not doing ..how sir..for ex..1 is text 2. Is image..3...grid layout..how to do sir
Code : github.com/WithSam/Grid-Layout
3:18 to fill the empty space. thats Exactly what i was looking for. thnks
Glad to know it helped 😁✌🏻❤️
so soothing music behind the lecture ..loved it a lot
Usefull this video for me..tx sir
Thank you so much! Clear explanation with simple steps!
Love your lecturing thanks a lot!
Your Welcome 😄✌🏻❤️
That was great! Thanks for explaining
THANK YOU SO MUCH BRO
How to make variable row size and coloumn size like we used to do in css like row-span:2
maybe use table layout?
Dil jit liya bro 🔥🔥🔥
🫂❤️
Explanation is really great 🙏🙏 👍👍
Glad you think so! ❤️
Great Job Sam 👍👍
Very helpful :) Thank you so much
Amazing tip and tutorial.. thank you sir
Your Welcome! 😁❤✌🏻
wow dude thanks for the iformation i will support you just keep spirit okay!!!
Thank you, I will ❤
very detailed explanation
Thank you so much😍😍😍
Amazing
Thanks great tutorial
very nice! thank you
thanks man this was realy helpful
Your Welcome my friend 😁❤✌🏻
Good but when it running on a physical device, the view overflows the screen. What can i do?
thank you!!
Good information 👍
Wow, very nice
bro android:layout_coloumWeight is not working in api greater than 21
Greate expalination...
thanks for this!
My pleasure!
thank you so much
So nice
Thank You Sir.
Your Welcome! 😄✌🏻❤
It's working 👍👍👍
How to lock and unlock girdview button to next activity plz help bro
Omg thank you so much
Your Welcome Mate 😄❤️✌🏻
This was quite helpful but why not use the android:useDefaultMargin="true" property ? It will also avoid duplications of margins right ?
how do i do a 5x5 grid? anything over 4 columns just fills the whole screen.
Thanks dude...
Your Welcome ❤✌🏻
Thanks
I have a little problem: the horizontal space between the buttons is good, but the vertical space is bigger !!! Could you help with that please?
What exactly do you want to do?
Increase the vertical gap between the buttons?
@@WithSam yes
@@MrIMacro Just add a desired Margin at the bottom, for all the card views
Copy this :
android: layout_marginBottom = "(enter your desired number)dp"
how do you edit the width of the buttons so that the grid fits on smaller screens
thanks for the tutorial.please give me the music in the video, the one you put is the wrong one.:)
Good.....
just name the buttons as 1 , 2 , 3... rotate the screen, code will fail, it will show more than 2 buttns in one row, if we want to see only 2 btns in 1 row, how to do that?
The code fails because it is inside the Constraint Layout.
When you add components inside the Constraint Layout, you have to center them vertically and horizontally so that whenever you rotate the screen, the code doesn't fail.
I have shown this concept in my Constraint layout tutorial video, you can check it out here :
ruclips.net/video/6Ixw8rzThfw/видео.html
Now, to fix this code you will have to do the same for the GRID LAYOUT as it is inside the Constraint layout and then the buttons are inside the Grid layout.
So the Constraint Layout becomes the parent of Grid Layout, and Grid Layout becomes the parent of all the buttons.
So just center the Grid Layout Vertically and Horizontally in Parent and the code will get fixed 👍
Or else, just copy this in side the Grid Layout section :
Before :
After :
Copy the AFTER part.
Bro please continue this series
Indeed, I will ❤✌🏻
Good video
Sir it very useful tutorial..I success full run my grid layout..but sir I want to add above the grid layout text view and image view it's not doing ..how sir..for ex..1 is text 2. Is image..3...grid layout..how to do sir
Mery Pas gravity fill saii ni a rha fill ni ho rha pory page py kindly tell me plzz for erro
how can i add the buttons with out xml?
Sir This Is Responsive for all screen
Yup
Make video data store in next activity
indiano supremo
Grazie Signore 😁❤️✌🏻
Can I add an image here ?
Is it possible to fix any image above this button bro
Yeah why not
Place it above the code of the Grid Layout
are you serious
I want how to do like this on coding
thank you so much