chicharp chicharp - 1 year ago 87
Android Question

Different appearance of interface in xml layout when run in AVD/Graphical Layout

I'm working on Android. This is what my AVD looks like when I run it. Why is it different than in the xml layout?
How can I make it look the same?

And this is my xml layout look like,

And this is AVD look like

Answer Source

Need to create different layout to support all screen size in android.

Standard Screen sizes as per developer docs is

  • xlarge screens are at least 960dp x 720dp
  • large screens are at least 640dp x 480dp
  • normal screens are at least 470dp x 320dp
  • small screens are at least 426dp x 320dp

You should read Supporting multiple screens.

More about screen resolutions in android visit below links.

android multi-screen support 1

android multi-screen support 2

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download