渐变的几种效果
16lz
2021-01-23
今天试了一下渐变的效果 还不错
<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 GridView 去掉自带点击边框效果和禁止上下滑动
- 各种类型Android Market了解
- android Animation 动画效果介绍 续 .
- 在代码中实现android:tint效果
- Android实现书籍翻页效果--扩展版
- Android 实现ListView 3D效果 - 2 - 弹性滚动,Fling
- Android学习之 UI效果
- Android官方设计常用icon以及color颜色RGB值和对应颜色效果图
- 【Android 界面效果47】RecyclerView详解