代码如下:
android:orientation="horizontal"
android:background="@color/theme_color"
android:id="@+id/fragment_layout"
android:clickable="false"
android:layout_width="match_parent"
android:layout_height="match_parent">
这样的帧布局,按道理第一个button应该在底部,但是在Android5.0的时候,这个button跑到了顶部,请问有什么办法解决吗?或者怎么控制framelayout的层次??
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
所有这种viewGroup都是默认在顶部而不是底部的。。
要在Framelayout底部就加一个layout_gravity= "bottom"
要在RelativeLayout底部就加alignParentButtom = "true"