how to solve the problem when i run app on physical mobile the app will not fit to the mobile screen in android studio? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

how to solve the problem when i run app on physical mobile the app will not fit to the mobile screen in android studio?

android studio

6th Oct 2020, 7:08 AM
Mani Kailey
Mani Kailey - avatar
3 Answers
+ 1
Avoid straightly defined values for layout parameters. Always use match_parent or wrap_content components as layout height or width as possible. You can use layout weight attribute to properly manage the layout incase of linear layout.
6th Oct 2020, 11:24 AM
0_O-[MĂ€gĂĄr_SĂĄm_ÄkĂ _NĂŒllpÞïntĂȘr_ÈxĂ«cĂ©ptïön]~~
0_O-[MĂ€gĂĄr_SĂĄm_ÄkĂ _NĂŒllpÞïntĂȘr_ÈxĂ«cĂ©ptïön]~~ - avatar
0
Your mobile screen is probably smaller that the virtual phone you were using. Design XML such that it fits perfectly in the smallest available template in android studio
6th Oct 2020, 7:15 AM
‎ ‏‏‎Anonymous Guy
0
If possible try "Constraint layout"
7th Oct 2020, 4:53 AM
Rajan Singh