Рет қаралды 97,629
🏆 My Online Courses
⭐Discount Coupon: LAUNCH-STEVDZA-SAN
stevdza-san.com
🐱👤 Wanna become a member? Join!
/ @stevdzasan
📸 Instagram
/ stevdza_san
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.
Download Background Vector: bit.ly/3bmYeSK