Grid Layout Android Studio | How to create and edit | Android Studio 4.0

Поделиться
HTML-код
  • Опубликовано: 18 сен 2024

Комментарии • 74

  • @WithSam
    @WithSam  3 года назад

    Code : github.com/WithSam/Grid-Layout

  • @muhammadsaadmansoor7777
    @muhammadsaadmansoor7777 3 года назад

    3:18 to fill the empty space. thats Exactly what i was looking for. thnks

    • @WithSam
      @WithSam  3 года назад

      Glad to know it helped 😁✌🏻❤️

  • @cavi8779
    @cavi8779 2 года назад

    so soothing music behind the lecture ..loved it a lot

  • @poojaborad9144
    @poojaborad9144 3 года назад +1

    Usefull this video for me..tx sir

  • @kwokashley2000
    @kwokashley2000 2 года назад

    Thank you so much! Clear explanation with simple steps!

  • @darmawanjr2528
    @darmawanjr2528 2 года назад

    Love your lecturing thanks a lot!

    • @WithSam
      @WithSam  2 года назад

      Your Welcome 😄✌🏻❤️

  • @infinitycoder6813
    @infinitycoder6813 Год назад

    That was great! Thanks for explaining

  • @harneeshyadav1577
    @harneeshyadav1577 Год назад +1

    THANK YOU SO MUCH BRO

  • @biswamohandwari6460
    @biswamohandwari6460 3 года назад +1

    How to make variable row size and coloumn size like we used to do in css like row-span:2

    • @exismys
      @exismys 3 года назад +1

      maybe use table layout?

  • @ifanzocoder39
    @ifanzocoder39 Год назад

    Dil jit liya bro 🔥🔥🔥

  • @merajzafir3246
    @merajzafir3246 3 года назад

    Explanation is really great 🙏🙏 👍👍

    • @WithSam
      @WithSam  3 года назад

      Glad you think so! ❤️

  • @debartoloa
    @debartoloa 2 года назад

    Great Job Sam 👍👍

  • @zim_
    @zim_ 3 года назад

    Very helpful :) Thank you so much

  • @grayos14
    @grayos14 3 года назад

    Amazing tip and tutorial.. thank you sir

    • @WithSam
      @WithSam  3 года назад

      Your Welcome! 😁❤✌🏻

  • @yotsusan_machi
    @yotsusan_machi 3 года назад

    wow dude thanks for the iformation i will support you just keep spirit okay!!!

    • @WithSam
      @WithSam  3 года назад +1

      Thank you, I will ❤

  • @goku2685
    @goku2685 Год назад

    very detailed explanation

  • @rafhaellowixhomwad
    @rafhaellowixhomwad 3 года назад

    Thank you so much😍😍😍

  • @saleemhafiz19
    @saleemhafiz19 7 месяцев назад

    Amazing

  • @Mikzur
    @Mikzur 2 года назад

    Thanks great tutorial

  • @leonidas_30052
    @leonidas_30052 2 года назад

    very nice! thank you

  • @abdenourbacha4782
    @abdenourbacha4782 3 года назад

    thanks man this was realy helpful

    • @WithSam
      @WithSam  3 года назад

      Your Welcome my friend 😁❤✌🏻

  • @ImMaxPower
    @ImMaxPower 2 месяца назад

    Good but when it running on a physical device, the view overflows the screen. What can i do?

  • @LocoErick99
    @LocoErick99 3 года назад

    thank you!!

  • @sjjayaswal7621
    @sjjayaswal7621 2 года назад

    Good information 👍

  • @sumonkobirbd
    @sumonkobirbd 2 года назад

    Wow, very nice

  • @anujmehta8089
    @anujmehta8089 3 года назад +1

    bro android:layout_coloumWeight is not working in api greater than 21

  • @adnanhabib3059
    @adnanhabib3059 Год назад

    Greate expalination...

  • @digidianne3302
    @digidianne3302 3 года назад

    thanks for this!

    • @WithSam
      @WithSam  3 года назад

      My pleasure!

  • @woo8006
    @woo8006 3 года назад

    thank you so much

  • @najmasiddique143
    @najmasiddique143 2 года назад

    So nice

  • @pulasthinarada6381
    @pulasthinarada6381 3 года назад

    Thank You Sir.

    • @WithSam
      @WithSam  3 года назад +1

      Your Welcome! 😄✌🏻❤

  • @najmasiddique143
    @najmasiddique143 2 года назад

    It's working 👍👍👍

  • @TheMemoryMaster
    @TheMemoryMaster 3 года назад

    How to lock and unlock girdview button to next activity plz help bro

  • @debalghosh5412
    @debalghosh5412 3 года назад

    Omg thank you so much

    • @WithSam
      @WithSam  3 года назад

      Your Welcome Mate 😄❤️✌🏻

  • @pratikthorat3480
    @pratikthorat3480 3 года назад

    This was quite helpful but why not use the android:useDefaultMargin="true" property ? It will also avoid duplications of margins right ?

  • @zachys91
    @zachys91 3 года назад

    how do i do a 5x5 grid? anything over 4 columns just fills the whole screen.

  • @ryanchris7262
    @ryanchris7262 3 года назад

    Thanks dude...

    • @WithSam
      @WithSam  3 года назад

      Your Welcome ❤✌🏻

  • @MrIMacro
    @MrIMacro 3 года назад

    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?

    • @WithSam
      @WithSam  3 года назад

      What exactly do you want to do?
      Increase the vertical gap between the buttons?

    • @MrIMacro
      @MrIMacro 3 года назад

      @@WithSam yes

    • @WithSam
      @WithSam  3 года назад

      @@MrIMacro Just add a desired Margin at the bottom, for all the card views
      Copy this :
      android: layout_marginBottom = "(enter your desired number)dp"

  • @richardslarry9748
    @richardslarry9748 Год назад

    how do you edit the width of the buttons so that the grid fits on smaller screens

  • @happycommunity4462
    @happycommunity4462 3 года назад

    thanks for the tutorial.please give me the music in the video, the one you put is the wrong one.:)

  • @shahidkhanofficial9421
    @shahidkhanofficial9421 3 года назад

    Good.....

  • @TheQuickMath
    @TheQuickMath 4 года назад +1

    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?

    • @WithSam
      @WithSam  4 года назад +1

      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.

  • @karruramesh9798
    @karruramesh9798 4 года назад

    Bro please continue this series

    • @WithSam
      @WithSam  4 года назад

      Indeed, I will ❤✌🏻

  • @sjjayaswal7621
    @sjjayaswal7621 2 года назад

    Good video

  • @mahendragajbhiye8838
    @mahendragajbhiye8838 3 года назад

    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

  • @najmasiddique143
    @najmasiddique143 2 года назад

    Mery Pas gravity fill saii ni a rha fill ni ho rha pory page py kindly tell me plzz for erro

  • @alexxl9
    @alexxl9 Год назад

    how can i add the buttons with out xml?

  • @neonff9238
    @neonff9238 3 года назад

    Sir This Is Responsive for all screen

  • @shirishkikani8769
    @shirishkikani8769 3 года назад

    Make video data store in next activity

  • @francescolanni9733
    @francescolanni9733 3 года назад

    indiano supremo

    • @WithSam
      @WithSam  3 года назад

      Grazie Signore 😁❤️✌🏻

  • @meherunnesahossainibnath5958
    @meherunnesahossainibnath5958 Год назад

    Can I add an image here ?

  • @sherlinsowmiya3842
    @sherlinsowmiya3842 3 года назад

    Is it possible to fix any image above this button bro

    • @WithSam
      @WithSam  3 года назад

      Yeah why not
      Place it above the code of the Grid Layout

  • @asalqadry8252
    @asalqadry8252 3 года назад

    are you serious
    I want how to do like this on coding

  • @tiennguyenminh6454
    @tiennguyenminh6454 Год назад

    thank you so much