gpt4 book ai didi

android - 我无法在框架布局内移动按钮

转载 作者:太空宇宙 更新时间:2023-11-03 11:47:23 25 4
gpt4 key购买 nike

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

enter image description here

最佳答案

你需要RelativeLayout或其他类似的布局作为父容器,因为 FrameLayout只需将 View 一个接一个地绘制出来,您还应该检查属性部分以查看可以在布局上应用的 attibute 属性。

To read further about ViewGroups and it's sub-types with their behaviours

关于android - 我无法在框架布局内移动按钮,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41395744/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com