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]~~ - avatar
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
If possible try "Constraint layout"
7th Oct 2020, 4:53 AM
Rajan Singh