<?xml version="1.0" encoding="utf-8"?>
<layer-list
xmlns:android="http://schemas.android.com/apk/res/android">
<item>
<shape>
<gradient
android:startColor="#ffa6a6a6"
android:centerColor="#ffdbdbdb"
android:endColor="#ffe7e7e7"
android:height="1px"
android:angle="90"
android:dither="true" />
</shape>
</item>
</layer-list>

angle渐变角度
dither是一种故意造成的噪音用以随机化量化误差,阻止大幅度拉升图像时导致的像banding(色带)这样的问题

更多相关文章

  1. Android(安卓)图片渐变切换效果
  2. Android背景渐变
  3. Android中的Shape美化
  4. Android中shape定义控件的使用
  5. Android中shape的简单介绍
  6. android:shape的使用
  7. Android中的shape中的属性大全
  8. android > 布局文件 > 背景圆角
  9. Android之Selector、Shape介绍

随机推荐

  1. android 耳机插入检测
  2. 解决工程导入出现the currently displaye
  3. appium简明教程(7)——Desired Capabilitie
  4. android 项目 local_Test_exam 代码分享
  5. 探索Popupwindow-对话框风格的窗口(
  6. Android(安卓)基于TranslateAnimation 的
  7. android View 树的理解
  8. [Xamarin.Android] 儲存資料於Windows Az
  9. Android——用XML的selector实现按钮多态
  10. 第五章(6)Libgdx应用框架之接口