利用bitmap.xml shape 设配

<shape android:shape="rectangle"
  xmlns:android="http://schemas.android.com/apk/res/android">
    <solid android:color="@android:color/transparent" />
    <stroke android:width="1.0dip" android:color="@color/pink" />
    <corners android:radius="8.0dip" />
</shape>

利用xml定义bitmap (如:’锯齿‘)android

<?xml version="1.0" encoding="utf-8"?>
<bitmap xmlns:android="http://schemas.android.com/apk/res/android"  
    android:src="@drawable/img" 

    android:tileMode="repeat" >
</bitmap>
相关文章
相关标签/搜索