Support Multiple Screen Sizes - Android Studio Tutorial

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

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

  • @fatihmeric6990
    @fatihmeric6990 4 года назад +16

    I searched this for months but i didn't found it. Thank you very much for making this video. Sub and like!

  • @vaibhavkumarpatel6863
    @vaibhavkumarpatel6863 4 года назад +17

    There is no other way to make the app responsive for all devices.
    I mean this is the long process to make the app responsive.

  • @hashimal-haddadi4877
    @hashimal-haddadi4877 4 года назад +3

    Brilliant , This is how tutorials should be

  • @aritrabhattacharya7722
    @aritrabhattacharya7722 4 года назад +5

    great tutorial. But wouldn't it be better to use ratios and constraints along with vector drawables rather than creating same screen for each dpi? In that way the UI will always scale according to the ratios and fit all devices

    • @StevdzaSan
      @StevdzaSan  4 года назад +2

      Yes, but sadly that's not enough on more complex layouts.

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

      I would say the same but knowing this option exist and how to use it might be helpful.

  • @ayushraj5672
    @ayushraj5672 2 года назад +1

    In which software did you create you design 0:09 . Kindly reply with the name of that software as soon as possible...

  • @pradeepkumarreddykondreddy7048
    @pradeepkumarreddykondreddy7048 4 года назад +14

    Is this the only solution for supporting multiple screen sizes ?

    • @StevdzaSan
      @StevdzaSan  4 года назад +4

      You can also create multiple dimens xml files for various margin sizes.

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

      @@StevdzaSan plz provide

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

      I did it using only weights.

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

    Cool this is topic i have been waiting for !! Thank you

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

    thank you sir , you're videos are very clear and straight to the point . keep going !

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

    Oh. A video in english. Take your like

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

    Ne znam hoces li vidjeti komentar, ali pozdrav iz Hrvatske. Naisao sam slucajno na tvoj kanal i mogu ti reci samo nastavi!

  • @maheshmahadar4780
    @maheshmahadar4780 2 года назад +1

    We can use multiple dimen files instead of multiple layout files

  • @bboydarknesz
    @bboydarknesz 4 года назад +3

    Soo.. If we want to add new / modified View, we do the same things many times? 🙊🙊🙊

  • @hafizegungor2854
    @hafizegungor2854 4 года назад +2

    thank you it helped a lot!

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

    very informative, but you are making login screen three times right? that sound so not efficient when building a big app.

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

    Great video and a really professional info section. Great job my man

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

    This tutorial helps me a lot ! thank you sir!

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

    Very easy to understand! Thank you simplifying this topic

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

    great video! Question How does a device know which layout file to display? Do I need to program that logic in the kotlin file?

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

    Thanks, but why don't you just export from xd for Android. It will export that background in different resolutions, and will also do everything for you.

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

    Super fast but super good haha !
    Thanks

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

    Thank you so much, that really helped me understand what i was missing. Just one question, why you don't use any Density?

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

    Great video dude 👍🏽

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

    What does error "E/MultiWindowProxy: getServiceInstance failed!" mean?
    please help me regards this

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

    Does wrap-content, match-parent, weights usage will prevent from using differend layout?

  • @Goad2
    @Goad2 9 месяцев назад

    So when I make any update to the app I need to do manually for all the device resolutions?

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

    Great tutorial, thank you so much!

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

    so damn good tutorial sir, suscribed inmediatly, keep going!

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

    which is best multi screen size, Smallest widht (SW600),or Density

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

    Brilliant! Thank you Sir

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

    I added all different screen sizes but when i run my project the main_activity.xml is never used! I tried multiple devices in the emulator but never managed to use it! should I delete the main_activity.xml ?!

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

    Great video! Thanks a lot!

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

    Having images of all dpi's VS creating multiple screen size layout.....which one is bettter or which one should be used at which moment

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

      Multiple layouts and preferably vector assets.

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

      @@StevdzaSan I'm confused when to use all pixel size images and when to use multiple layout for single screens

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

    excellent work, could you tell me the name of the software I use to design in the background vector?

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

    Awesome video

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

    Why not choose the any density option when creating activities with the same same background so as to avoid maximizing and minimizing?

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

    Thank you nice tutorial keep it up

  • @benjaminjr.togonon3827
    @benjaminjr.togonon3827 4 года назад

    Thank for the Tutorial :)

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

    Sir make a video on searchview on recycleview

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

    So if u have 20 screens you create 60 xmls to support those 3 densities ..
    Is there a way we don't have to go through this tedious process

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

      Other way is to declare different size values in dimens.xml. Each dimens.xml with different qualifier like in layouts.

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

    Really curious what is the program name used to export to SVG?

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

    Hello sir i need to Know how to résolve the same problem but the view (table. Button) are create programmatically please help me

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

    Hello bro. Please help me. How can i calculate all dps in the each layout file??

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

    thanks for the video :) I have one question. Is it really important to save background file as .svg? Won't it work on .png?

    • @StevdzaSan
      @StevdzaSan  4 года назад +4

      Using vectors has many benefits, less apk size, pixel perfect images and better performance.

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

      @@StevdzaSan Thanks for answer. So I'm gonna make some changes in my app !

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

    how did you know, if nexus S using High density not XXX-Density, how do you check it ?

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

      In Device Manager it tells you under resolution

  • @RajeshYadav-zv2uo
    @RajeshYadav-zv2uo 4 года назад

    Which site use for design please asked

  • @mehdigavanji5443
    @mehdigavanji5443 2 года назад +1

    Thank you so much

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

    Thanks dude

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

    Awesome!

  • @raihanchaira9653
    @raihanchaira9653 9 месяцев назад

    I wanna ask something, is that not make the code boilerplate??

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

    What to do when two phones with the same density have different screen sizes?

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

    whats the difference between density and size when you create new xml file?

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

    I have 2 devices with different sizes but they both have the same xhdpi , when i run my app they look different different, why is that, help please

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

      For more info, read this: developer.android.com/training/multiscreen/screensizes

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

      @ Brian Puron, same problem is occured me.were you able to resolve it?.if you have an idea help me.

  • @md.asrafuzzaman1363
    @md.asrafuzzaman1363 4 года назад

    wow. That's amazing video... Thanks

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

    Thanks .Great video

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

    Awesome this is a very useful video, please can you make a video on how to upload list of images to firebase

    • @StevdzaSan
      @StevdzaSan  4 года назад +3

      I'm planning to make a full course for Firebase realtime database and firestore in the future.

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

      @@StevdzaSan I really appreciate you replying....Thanks

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

    If I have five interfaces is this method efficient?

  • @skaterope
    @skaterope 4 года назад +2

    perfect simple and clear !

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

    thanks!

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

    Thanks for your great tutorials. Sub and like

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

    Thanks!

  • @kkiran-zk8ed
    @kkiran-zk8ed 4 года назад

    Why can't you use different dimensions based on density

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

    Should I repeat this method for any layout for example if I made Recycleview when I made the custom layout for it should I make it 4 times hdpi and xhdpi ...

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

      Basically recycler view fits well in all devices. You have to worry about your startup Screens

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

      @@gajendrapandeya5081 thanks bro 🌹

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

    Thank you

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

    How can I handle same density with different screen size?

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

    Thank you

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

    Umm,, how did you handle image size that come from api?
    Maybe like for a banner? It usually have fixed height in android. What is the better solution for this? Thanks

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

      Use glide library. I have made a video about that

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

    Hello, what i need to do with a lot of xml files? add one by one?

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

    Guys, I have created Low Density, then I install 2 device which is LDPI, but each other have different layout design and didn't match the layout which I created. why? how support all resolutions?

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

      P.S I have RecyclerView which I want to show current DPs on the screen

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

    What the application name?

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

    Nice, so we always have to make different XMLs to support multiple DPIs
    There's no special layout (relative, linear etc) which would adjust the layout according to screen size?

    • @StevdzaSan
      @StevdzaSan  4 года назад +3

      Well you could use match parent for a view instead of using fixed dimensions, that way the view will expand everytime your app is running of different screen sizes or even on landscape mode. However for more complex layouts you would use multiple layout files.

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

    So the question is, which screen you gonna publish to playstore? I don't think it's the right solution.

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

      Among many different layouts, Android OS automatically choses the right one for your smartphone.

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

    Damn!

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

    You sure are teaching us great stuff and thanks but... do we have to do that for every single xml layout that will be shown in our app? 🙄
    is there any way to make this automatically?

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

    Would've been better without the music. It's distracting

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

    First viewer

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

    you just messed up the tutorial...remember not everyone is expert as you