我无法在框架布局内移动按钮 [英] I can't move a button inside a frame layout

查看:51
本文介绍了我无法在框架布局内移动按钮的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图使用图形界面和XML文件中的android:layout_alignParentLeft来移动按钮,无论如何它不起作用。我的Android Studio版本是2.2.3。您是否遇到过这个问题?

I have tried to move the button using graphical interface and android:layout_alignParentLeft in XML file, anyway it does not work. My Android Studio version is 2.2.3. Have you ever had this problem?

推荐答案

您需要 RelativeLayout 或其他类似版本布局作为父容器,因为 FrameLayout 只会在视图之间绘制一个应该检查属性部分,以查看可以在布局上应用的 attibute 属性。

You need RelativeLayout or other simlilar layout as parent container because FrameLayout just draw the views one over another plus you should check the properties section to see the attibute properties that you can apply on your layout.

进一步了解ViewGroup及其子类型及其行为

这篇关于我无法在框架布局内移动按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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