Consult the Android project screen adaptation

android:background="@drawable/login_windows" >

Interface settings in Galaxy nexus wrote, have the right situation in Millet Field, asking how to change the code to make the interface to adapt to a variety of different models of.

Try to add the code for the android:width = screen.width*80%, report the result of wrong.

Started by Lynn at December 11, 2016 - 12:37 PM

Using the absolute layout does not work properly, suggested using relative layout.
The absolute coordinates, required by code calculation to adapt to different size of mobile phone.

Posted by Bartley at December 19, 2016 - 1:09 PM

Absolute layout has been out of date.

Posted by Tammy at January 03, 2017 - 2:05 PM

Relative layout, the relative layout can adapt to most of the screen

Posted by Gillian at January 11, 2017 - 2:22 PM