转自:http://www.iteye.com/topic/1117561

<shape xmlns:android="http://schemas.android.com/apk/res/android"      android:shape="rectangle">      <gradient          android:startColor="#ffffff"          android:endColor="#EDEDED"          android:angle="-90" />  </shape>  

和图片一样 放入drawable 配置好把它看成图片调用就好了~

控件xml中 调用android:background="@drawable/pull_to_refresh_header_background" 是不是很简单 ~

P注:放在drawable下 和selector一样用法

更多相关文章

  1. 控件:TouchProject(绘图) --- 触摸事件
  2. 背景圆角以及图片圆角处理
  3. android 拍照,图片裁剪,选择图片
  4. 控件_RadioGroup&&RadioButton(单选按钮)和Toast
  5. Android 压缩图片并转Base64方法之一
  6. Android的xml布局文件代码讲解(TextView控件)
  7. Android关于ListView显示SD卡上的Bitmap的图片(图片压缩之后)

随机推荐

  1. android使用AlertDialog提示 Unable to a
  2. android linux 命令
  3. Android 如何直播RTMP流
  4. 如何加密android apk
  5. Android之ScrollBar
  6. Android(安卓)-- 内容观察者
  7. Android系统介绍
  8. Android中Intent传递对象的两种方法(Seri
  9. 【Android】小白进阶之接口和抽象类的使
  10. 获取Android开机启动项列表