渐变的几种效果
16lz
2021-12-04
今天试了一下渐变的效果 还不错
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<gradient android:type="radial" android:gradientRadius="250"
android:startColor="#E9E9E9" android:endColor="#D4D4D4" />
</shape>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<gradient android:angle="0" android:startColor="#FFdaf3fc"
android:centerColor="#FFd4e9a9" android:endColor="#FFdaf3fc"/>
</shape>
在这里要注意android:type="radial"类型的使用会有不同的效果
android:centerColor="#FFd4e9a9" 通常这个也不是被人常用
更多相关文章
- android 背景圆角以及图片圆角处理
- android GridView 去掉自带点击边框效果和禁止上下滑动
- 各种类型Android(安卓)Market了解
- Android实现书籍翻页效果--扩展版
- android:shape的使用
- Android(安卓)Shape
- shape的使用总结
- Android中shape的使用
- android Animation 动画效果介绍 续 .