0
我刚开始开发android应用程序。 我的电脑没有很棒的显卡,所以我用我的手机来调试应用程序。 但是当我在android studio中运行应用程序并选择我的手机时,该应用程序将运行,但它只是在左上角显示一个空白按钮,而原始应用程序远不止于此。在硬件设备上测试Android Studio应用程序
xml文件
<RelativeLayout xmlns:android="schemas.android.com/apk/res/android"; xmlns:tools="schemas.android.com/tools";
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
android:paddingBottom="@dimen/activity_vertical_margin"
tools:context=".MainActivity" android:id="@+id/myapp"
android:background="#ff0060">
<Button android:layout_width="wrap_content"
android:layout_height="wrap_content" android:text="Hello World"
android:id="@+id/button" android:layout_alignParentTop="true"
android:layout_alignParentLeft="true"
android:layout_alignParentStart="true" />
我附上了截图,使之更加清晰。请帮忙!
ü可以添加一些代码的? –
从哪个文件? – Ayusch
xml文件和登陆活动 –