Win a copy of Machine Learning with R: Expert techniques for predictive modeling this week in the Artificial Intelligence and Machine Learning forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Ganesh Patekar

How To Support Multiple Screen Size In Android

 
Ranch Hand
Posts: 120
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Saloon Keeper
Posts: 5811
146
Android Mac OS X Firefox Browser VI Editor Tomcat Server Safari
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The android developer web site has very extensive documentation on this specific subject; did you go through that? If not, start with that and come back here with any questions.
 
Ranch Hand
Posts: 392
4
Android Tomcat Server Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can use ConstraintLayout.
 
Saloon Keeper
Posts: 21137
134
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Tim Moores
Saloon Keeper
Posts: 5811
146
Android Mac OS X Firefox Browser VI Editor Tomcat Server Safari
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
He repaced his skull with glass. So you can see his brain. Kinda like this tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!