Click here to Skip to main content
15,878,959 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have made an app and when I use it in my emulator then it was working fine there , the design was also good but when I have converted to apk and used in my phone and my parents phone I found my widgets messed up , some text automatically changed their size , framelayout changed its position etc. I have searched for the solution in some websites and they have suggested to use constraint layout but after using that also I am suffering from the same problem

What I have tried:

To fit my app and its layout in every type of screen
Posted
Updated 22-Jul-20 19:07pm
v2
Comments
Richard MacCutchan 22-Jul-20 4:16am    
Check the Android documentation for automatic scaling.
Member 14883729 22-Jul-20 5:02am    
Can u give me the link
Richard MacCutchan 22-Jul-20 7:13am    
Can you use Google?
Member 14883729 22-Jul-20 7:15am    
Sir actually I have Google and they have suggested to use either constraint layout or relative layout and I have used both of them
Richard MacCutchan 22-Jul-20 7:19am    
Then do what I previously suggested and go and study the Android documentation: Android Developers: Design for Android[^].

1 solution

Quote:
The design editor can preview your layout on different Android devices and versions, and you can dynamically resize the layout to be sure it works well on different screen sizes.

Build a UI with Layout Editor  |  Android Developers[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900