1、建立一个android项目。
2、打开layout下的activity_main.xml文件,如果创建项目事修改了activity_main.xml文件就选择你修改的文件名。
3、删除activity_main.xml文件中内容。
4、将下列文件布置到activity_main.xml中。
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:fadingEdge="vertical">
<RelativeLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
<!-- 需要上传一张图片 也可以去掉这行--> android:background="@drawable/back"
>
<TextView
android:id="@+id/textView1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="22dp"
android:layout_marginTop="17dp"
android:text="@string/hello_world" />
<TextView
android:id="@+id/TextView01"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignLeft="@&#