更改手机窗口画面底色——color.xml定义颜色

res/drawable/main.xml

<?xml version="1.0" encoding="utf-8"?>

<AbsoluteLayout xmlns:android="http://schemas.android.com/apk/res/android"

    	       android:id="@+id/absoluteLayout1" 

       	       android:layout_width="fill_parent" 

       	       android:layout_height="fill_parent" 
android:background="@color/white"> <TextView android:layout_height="wrap_content"
android:layout_width="wrap_content"></TextView> </AbsoluteLayout>

res/values/color.xml

<?xml version="1.0" encoding="utf-8"?>

<resources>

    <color name="red">#00ff0000</color>

    <color name="green">#ff00ff00</color>

    <color name="white">#ffffffff</color>

</resources>
#ff00ff00 前面两位表示透明度 后面表示RGB

你可能感兴趣的:(color)