AlexCheng

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

分类:

技术点:

相关文章:

  • 2021-11-22
  • 2021-08-12
  • 2022-01-01
  • 2022-12-23
  • 2022-01-10
  • 2022-01-20
  • 2021-06-24
  • 2022-02-17
猜你喜欢
  • 2021-12-18
  • 2021-04-03
  • 2021-12-18
  • 2022-12-23
  • 2021-10-20
  • 2021-04-14
  • 2021-11-16
相关资源
相似解决方案