今天试了一下渐变的效果 还不错

<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" 通常这个也不是被人常用

更多相关文章

  1. android GridView 去掉自带点击边框效果和禁止上下滑动
  2. 各种类型Android Market了解
  3. android Animation 动画效果介绍 续 .
  4. 在代码中实现android:tint效果
  5. Android实现书籍翻页效果--扩展版
  6. Android 实现ListView 3D效果 - 2 - 弹性滚动,Fling
  7. Android学习之 UI效果
  8. Android官方设计常用icon以及color颜色RGB值和对应颜色效果图
  9. 【Android 界面效果47】RecyclerView详解

随机推荐

  1. Android(安卓)7.0 启动篇 — init原理(一)(
  2. Error generating final archive: Debug
  3. 推送功能,(服务器向android客户端推送信息,
  4. Android 菜单(OptionMenu)
  5. android 笔记 02
  6. Android的StatusBar资料收集
  7. Android属性之build.prop生成过程
  8. 聊天室服务端
  9. Android(安卓)从缓存中读取图片并异步加
  10. Android利用Fiddler进行网络数据抓包