android开发讲述.ppt

点击next,直到finish完成工程创建,默认是一个空的工程,包含一个文本组件,显示:hello world! 选择刚才新建的工程,并点击图示按钮,即可在已经打开的模拟器中,运行该工程。 如果,有android手机打开调试模式,并连接到计算机,当点击运行按钮时,系统自动弹出选择对话框,如下: 第一个是模拟器,第二个是手机,选择其中一个即可在对应环境中运行。 activity_main.xml RelativeLayout xmlns:android=/apk/res/android xmlns:tools=/tools android:layout_width=match_parent android:layout_height=match_parent TextView android:layout_width=wrap_content android:layout_height=wrap_content android:layout_centerHorizontal=true android:layout_centerVertical=true android:text=@string/hello_world tools:context=.MainA

文档评论(0)

1亿VIP精品文档

相关文档