作者:手机用户2702937647 | 来源:互联网 | 2023-10-14 16:00
我正在尝试创建一个在单击按钮时出现的表单。这是输出:

您可以看到主要问题有两个:
-
右侧的绿色按钮,而不是表单的中心;
-
表格底部的白色部分,根据设备的分辨率而变大。我不知道为什么会出现。
这是以下形式的xml:
xmlns:tools="http://schemas.android.com/tools"
android:layout_
android:layout_
android:gravity="center">
请检查以下代码,我删除了样式,请在代码下方添加样式
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_
android:layout_
android:gravity="center">