今天是星期一,今天有很多的课所以没有很多的时间用来编程了,所以今天做了一下界面的优化,本来是我们的界面是蓝色的,不怎么好看。
所以我加了一个好看的界面。
修改main.xml,在LinearLayout 里添加android:background="@drawable/bg1"这个属性即可:
<?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/bg1"> <TextView android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="Hello Android from NetBeans"/> </LinearLayout>