如何把Android中的布局按钮的任何地方 [英] How to put buttons on anywhere in android layout

查看:108
本文介绍了如何把Android中的布局按钮的任何地方的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我希望把没有按键的顺序

I want to put buttons in not in the order

那么,什么是合适的布局(没有绝对布局),我怎么可以把这个图像中
布局?

So what is the suitable layout (without absolute layout) and how can I put this image in that layout?

在绝对布局,我们可以把任何地方的按钮在那种我想要做到这一点,而不使用绝对布局的布局。

In absolute layout we can put buttons anywhere in the layout like that I want do this without using absolute layout.

推荐答案

尝试使用的FrameLayout 并使用定位您的按钮的android:layout_margin 标签。这样你可以在你想要的任何地方放置你的看法。小心不使用像素作为计量单位,使您的布局看起来一样在不同的设备。希望这有助于。

Try using FrameLayout and position your buttons using android:layout_margin tags. This way you can position your views in any place you want. Be careful with not using px as measurement unit to make your layout look the same on different devices. Hope this helps.

这篇关于如何把Android中的布局按钮的任何地方的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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