替代AbsoluteLayout在Android中? [英] Alternative to AbsoluteLayout in Android?

查看:345
本文介绍了替代AbsoluteLayout在Android中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果AbsoluteLayout是德precated我有什么可以用它代替它?

If AbsoluteLayout is deprecated what can I use instead of it?

我已经做了一个使用AbsoluteLayout的应用程序,但它不会与不同的屏幕分辨率运行良好。我使用的,因为我可以设置一个按钮的X和Y位置。我可以设置一个按钮,使用其他布局的位置?

I've done an app that uses AbsoluteLayout but it doesn't work well with the different screen resolutions. I use because I can set the X and Y position of a button. Can I set the position of a button using another layout?

推荐答案

您可以使用RelativeLayouts如下描述:<一href="http://stackoverflow.com/questions/3294590/set-the-absolute-position-of-a-view-in-android">http://stackoverflow.com/questions/3294590/set-the-absolute-position-of-a-view-in-android

you can use RelativeLayouts as described here: http://stackoverflow.com/questions/3294590/set-the-absolute-position-of-a-view-in-android

这篇关于替代AbsoluteLayout在Android中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆