Aayush Taneja Aayush Taneja - 1 month ago 9
Android Question

Creating a layout that looks same on all screen sizes and densities

How to create just one

layout
that looks the same on all screen
sizes
and
densities
?

Also, using a single
high resolution
drawable
instead of
different resolution
drawables
for
different screens
a bad practice?

Answer Source

Use linear layout with weight. it will support all devices in any orientation.

Using a high resolution drawable for all devices is a bad practice. High resolution drawable can make ur app slower on low-resolution devices.