使用shape gradient创建具有渐变效果的线条
?
<?xml version="1.0" encoding="utf-8"?><shape xmlns:android="http://schemas.android.com/apk/res/android"> <gradient android:startColor="#0f00" android:endColor="#ff00" /></shape>
?
<?xml version="1.0" encoding="utf-8"?><shape xmlns:android="http://schemas.android.com/apk/res/android"> <gradient android:startColor="#0f00" android:centerColor="#ff00" android:endColor="#0f00" /></shape>?
?
?
?
?
?
<?xml version="1.0" encoding="utf-8"?><shape xmlns:android="http://schemas.android.com/apk/res/android"> <gradient android:startColor="#0f00" android:endColor="#0f00" android:type="radial" android:gradientRadius="50%" /></shape>?
?
?