开发者

why absolutelayout is deprecated? [closed]

开发者_如何学JAVA As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 11 years ago.

why absolutelayout is deprecated? I know that it may cause problems in supporting multiple screens but was better for showing view at particular position.


Because absolute positioning is not too much useful in world of various screen resolutions and aspect ratios. You'd usually leave element positioning to be computed by more flexible layouts.

From docs: Absolute layouts are less flexible and harder to maintain than other types of layouts without absolute positioning.

However, if it fits your special purpose, just use it.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜