复习布局与XML,写了一个空的登录界面。XML的注释我写在当行的后面了。程序运行图:
主函数没有改动,不贴了。背景图片名为:background.jpg 。看看main.xml吧。
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="@drawable/background" //设置背景
>
<LinearLayout android:id="@+id/empty" //占位用的layout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
a