首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 移动开发 > 移动开发 >

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

2012-09-27 
使用shape gradient创建具有渐变效果的线条??xml version1.0 encodingutf-8?shapexmlns:android

使用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创建具有渐变效果的线条
?

热点排行