可以使用以下代码实现Button在父布局中居中显示:
在RelativeLayout中包含一个Button,使用android:layout_centerInParent="true"属性让Button在父布局中居中显示。
android:layout_centerInParent="true"
上一篇:Button不想停止显示
下一篇:buttonclasserror:'button_listnotdefined'”使用replit