新建Android一个helloworld程序,界面没有显示Hello World!求解答?

不是应该显示Hello World!吗?

activity_main.xml代码:
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingBottom="@dimen/activity_vertical_margin"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
tools:context="com.example.hello.MainActivity" >

<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:layout_centerVertical="true"
android:text="@string/hello_world" />

</RelativeLayout>

这是默认的代码没问题,一般打开虚拟机速度都比较慢建议你多等一会,或者你也可以直接找个安卓手机插上进行调试,我们刚开始就是这么干的。
温馨提示:内容为网友见解,仅供参考
第1个回答  2014-11-12
你的模拟器还在开机中,开机后才运行程序。
第2个回答  2014-11-12
AVD界面显示disconnected是没和电脑连接上吧
就是不知道VS2011是怎么建立项目的,请把创建空项目到运行这个程序的全过程写一下 感激不尽本回答被网友采纳
相似回答