Support Multiple Screen Sizes - Android Studio Tutorial

preview_player
Показать описание
🏆 My Online Courses
⭐Discount Coupon: LAUNCH-STEVDZA-SAN

🐱‍👤 Wanna become a member? Join!

📸 Instagram

Android devices come in all shapes and sizes, so your app's layout needs to be flexible. That is, instead of defining your layout with rigid dimensions that assume a certain screen size and aspect ratio, your layout should gracefully respond to different screen sizes and orientations.By supporting as many screens as possible, your app can be made available to the greatest number of users with different devices, using a single APK.

And in this video I'm going to show you how your application can fit on different screen resolutions by creating layout files for each screen density.The pixel density is the number of pixels within a physical area of the screen and is referred to as dpi (dots per inch).

This is different from the resolution, which is the total number of pixels on a screen.To ensure that your layout is flexible and adapts to different screen sizes, you should use "wrap_content" and "match_parent" for the width and height of most view components, instead of hard-coded sizes.

Рекомендации по теме
Комментарии
Автор

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

antomicawad
Автор

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?

arqamsidd
Автор

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

aritrabhattacharya
Автор

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

chechent
Автор

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

fernandocarlos
Автор

Brilliant, This is how tutorials should be

hashimal-haddadi
Автор

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 ?!

windroid_
Автор

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

jumps
Автор

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

AllmightC
Автор

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

fatihmeric
Автор

Super fast but super good haha !
Thanks

Arzacks
Автор

Thanks for your great tutorials. Sub and like

mahirbird
Автор

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

hex
Автор

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

princeampofo
Автор

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

bboydarknesz
Автор

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

bboydarknesz
Автор

Sir make a video on searchview on recycleview

supernobidi
Автор

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

ayushraj
Автор

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.

vaibhavkumarpatel
Автор

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

hassesponnys
welcome to shbcf.ru