0

I am a experienced iOS developer but I am totally new to Android. I have to develop a Android app with a full screen background image and various images that has to fit the screen quite well. Now on iOS we live in a "protected" world where this is easy as I know the screen size of every device, but on Android that is very different I think. I have read about the small/normal/large/xlarge and ldpi/mdpi/hdpi/xhdpi structure, but I cant find anything on designing a full screen image that works well across devices with different sizes and ratios. How would I go and do that? I mean, what image size should I make for e.g. a normal+hdpi device to make it look good? The images must not be distorted (so the ratio must not be changed) but I can live with them being shrinked in size. Should I add some "space" to the image in top/bottom or sides to make it work well? How is this done best?

Thank you
Søren

4

1 に答える 1

0

スケーリングはすべて自分で行います。Android から指定された画面サイズを取得したら、できるだけ少ない xml を使用し、アプリ内ですべてのサイズを設定します。

于 2012-11-07T09:23:37.343 に答える