我试图让我在Android首次应用程序,但即使只有2文本字段和1个按钮在我的简单的应用程序总是浮到模拟器的角落。我曾尝试将Android映像更改为x86或安装HAXM,或尝试在具有不同布局设计的另一台计算机上尝试,但事情不会改变。
我是Android的新手,所以我希望能得到您的帮助。
这里是我的文件activity_main.xml中
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="com.example.admin.button.MainActivity">
android:id="@+id/editText"
android:layout_width="368dp"
android:layout_height="wrap_content"
android:ems="10"
android:hint="Username"
android:inputType="textPersonName"
tools:layout_editor_absoluteX="8dp"
tools:layout_editor_absolu