转自: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一样用法