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.
"privilege" comes from the Latin words for "private" and "law" (legal) and dates to feudal times. To "claim privilege" meant that you were above the laws that applied to the common people.
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 10 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