读书人

运用shape gradient创建具有渐变效果的

发布时间: 2012-09-27 11:11:17 作者: rapoo

使用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>

运用shape gradient创建具有渐变效果的线条




?

?

<?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>
?

?


运用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="#0f00"    android:type="radial"    android:gradientRadius="50%"    /></shape>
?

?



运用shape gradient创建具有渐变效果的线条
?

读书人网 >移动开发

热点推荐