问题
I'm just curious look at here
Galaxy Note falls under normal size and XHDPI Sony Xperia S falls under normal size and XHDPI
But how come in real device the layout look different on each device? How I provide layout for each Android device out there?
回答1:
I don't think you can ever make a layout that will suit every Android device. I find the best results are by:
(1) Using RelativeLayout
s
(2) Avoiding use of any hardcoded dimensions, instead using wrap_content
and fill_parent
where possible
I build three main layouts: normal
, small
and large
, and I use as many as five sets of graphics for different screen densities and sizes.
It's a challenge!
来源:https://stackoverflow.com/questions/10992764/how-android-manages-screen