替代AbsoluteLayout在Android中?AbsoluteLayout、Android

2023-09-04 04:36:11 作者:淺藍

如果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如下描述: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

 
精彩推荐
图片推荐