开发者

Using AbsoluteLayout on Android?

All pages of my application use the AbsoluteLayout which is deprecated. I was told that the reason i should not use absolutelayout is that it's not flexible in different screen sizes.

I tested my app with every simulator comes with android sdk, and I had no problem. But all screens on all simulators seem to have the same si开发者_开发问答ze. am i safe to go with absolute layout as long as it works on all simulators? 1.1, 1.5, 1.6, 2.0, 2.0.1, 2.2, 2.2


You can set screen size when creating AVD (by changing Skin Default HVGA to some other). And you can also change orientation pressing 7 and 9 keys on numeric keyboard.


If all screens on all simulators seem to have the same sizem it's because you are not changing it's resolution at the moment of create them. See Gawcio's response.

am i safe to go with absolute layout as long as it works on all simulators?

No, you are not. You must stop using AbsoluteLayout... there are better ways to build your application.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜