I create an android app with Kotlin, i want to know how To Support Multiple Screen Size ?
the app is perfect when running on my device but when i install it in another device the measures becomes disordered
Layouts are the mechanism that Android uses to manage different screen sizes. What a layout does is allow you to define rules that indicate the approximate sizes and locations of GUI elements, and then the layout manager will arrange them to fit. This is an approximate mechanism, however, so it's always good to check the results on actual devices.
Layouts are not unique to Android, incidentally. They have been used on lots of systems. The Tk toolkit for Unix/Linux, for example, and the Java Swing GUI.
Some people, when well-known sources tell them that fire will burn them, don't put their hands in the fire.
Some people, being skeptical, will put their hands in the fire, get burned, and learn not to put their hands in the fire.
And some people, believing that they know better than well-known sources, will claim it's a lie, put their hands in the fire, and continue to scream it's a lie even as their hands burn down to charred stumps.
There is lots more to know about handling different screen formats and sizes on Android than layouts. As I said, the developer website covers all that in detail, and should be the first point of reference.
posted 11 months ago
I use the constraint layout but still have the same error
the following code is my xml file
what should I change to make it support for all type of devices