前言
在开发一个应用程序过程中不可避免的要去修改组件的样式,比如按钮、输入框等。现在就看下如何通过Seletor实现样式的自定义。先看下简单的效果对比
aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAUEAAADVCAIAAABG7NWHAAAbCklEQVR4nO2dP0jk6sKH38IixRZTbDHFFgYsfMHCgMUGbDZgYWALA/vda+7nd44nx73Hk+tdJGwhwUaCxTJYSLCQYCGMhTAWwlgI2UYYCyEWQiyEWFik2GIKixQW+Yp3jNmZcXRcZzNxfw8/FifJzMT4Pnn/ziz57bffCAAgv8z+/nvWpwAA+AG02dmsTwEA8APMaXAYgDzz7z//yPoUAAA/wPxHjY5QBEFyGvKfv/7kB3kEQXIasjA/l/lJIAjy5JD//v0x85NAEOTJIZ/gMILkOXAYQfId8kmHwwiS48BhBMl34DCC5DtwGEHynWdzWJqkwti9e+UPlI5m/9siyMvLszksTlB9WeCHePm9aK7I9qZaWlfUOZGOUGmSGqsCP5z9b4sgLy/P15Ye5s110T3R6jdWFJfqsRnEqnejVC8V+0AS32X/qyLIi8yzOWwsy0HdqMdmFJei2K7HVhDr3o1aq8vVS8naEtCWRpBe5HkcVufE4MYIYhadxY81L1Ldb4p7qVROJX2Z8kPZ/8II8sLyDA4LY3zlTPOu1fqNF0SOF6lepHmRVqurbqhUL5XwuuZd2qV9QZrK/hdGkBeWZ3BYmRGqF3L1UvauLPdScUPFDRX3SqleKtULuXImVc+08qFa2hO0JVTFCPLMeQaH9RWhfCpWzsTKmVQ5v82ZVDmTyieScyw6X0X7QCjtCvoKpSM/47eyN+zacU2akDK/vgjS6zzRYTrCy+8FcYLyQ7y+LNqHonMklo/F8kkqx6JzdCvwnmBtCdoSpaO8Mi0YK5I89XCdLL4Vy9tl/9yvf6sHF0F1v/pILasH1eg6UqaUzK8vgvQ6T/rc0hBvbUruhVo+luUPVF+WzA1RneflGV6e4ZVZXplrRJ7l5emiNFWUporyNK/MUnGSlo+l6rlc2hWEt53eRRgT/HO/Xq97J569YVd2K/V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v/FyPj/snXjJrSc9G9QKa9i3wlZ3mcumvWHfd9d4GdcKvCRejsM/B1wr0G/A4e7AtQL9BhzuDlwr0G/A4e7AtQL9Bvn0NxzuAlwr0G+Q/8LhbsC1Av0GWZifQ7l8PLhWoN8g//nrT5TLx4NrBfoN8ve/NZTLx4NrBfoN8tfHP1AuHw+uFeg3yMc/Z1EuHw+uFeg3yJ8aHO4CXCvQbxDtj99RLh8PrhXoN4g2C4e7ANcK9BsNh5HHJ+s/GQDfQbQ/fs/6HAAAT4fMabNZnwMA4OmQf8/9kfU5AACeDpn/qGV9DgCAp0P0v/7M+hwAAE+HLMzPZX0OAICnQ/77NxwGIMeQT39/zPocAABPh3zS4TAAOQYOA5Bv4DAA+QYOA5Bv4DAA+QYOA5Bv4DAA+QYOA5Bv4DAA+QYOA5Bv4DAA+QYOA5Bv4DAA+QYOA5Bv4DAA+QYOA5Bv4DAA+QYOA5Bv4DAA+QYOA5Bv4DAA+QYOA5Bv4DAA+QYOA5Bv4DAA+QYOA5Bv4DAA+QYOA5Bv4DAA+QYOA5Bv4DAA+QYOA5Bv4DAA+QYOA5Bv4DAA+QYOA5Bv4DAA+QYOA5Bv4DAA+QYOA5Bv4DAA+QYOA5Bv4DAA+QYOA5Bv4DAA+QYOA5Bv4DAA+QYOA5Bv4DAA+QYOA5BvyKe/4TAAOQYOA5Bv4DAA+QYOA5Bv4DAA+QYOA5Bv/h/e095gqba4WwAAAABJRU5ErkJggg==" alt="" />
概要实现
首先写这个Selector XML文件,叫做button_selector,放到了drawable文件夹下,大概内容如下所示
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android"> <!-- 按下状态 -->
<item android:state_pressed="true">
<shape >
<!-- 边框颜色 -->
<stroke android:width="1dip" android:color="#728ea3" />
<!-- 背景颜色 -->
<solid android:color="#FFFFcc" />
</shape> </item>
<!-- 默认状态 -->
<item>
<shape>
<!-- 边框颜色 -->
<stroke android:width="1dip" android:color="#728ea3" />
<!-- 背景颜色 -->
<solid android:color="#FFFFFF" />
</shape>
</item> </selector>
然后为该按钮设置background属性:@drawable/button_selector,如下所示
<Button
android:id="@+id/btnSelector"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@drawable/button_selector"
android:text="Selector演示"
/>
这样自定义样式就成功的应用到了这个按钮上了。
Selector
先来看下官方描述:
You can describe the state list in an XML file. Each graphic is represented by an <item> element inside a single <selector> element. Each <item> uses various attributes to describe the state in which it should be used as the graphic for the drawable.
意思是说:你可以用一个XML文件来描述状态列表。在唯一的selector节点下,用item来描述每一种状态。每一个item通过不同的属性来标识用于哪种属性。
下面就看下item的具体属性
android:drawable:引用一个drawable资源
android:state_pressed:Boolean值,如果设置为true则代表用于对象在被按下的时候
android:state_focused:Boolean值,如果设置为true则代表用于对象在获得焦点的时候
android:state_hovered:Boolean值,如果设置为true则代表用于对象在hover状态的时候
android:state_selected:Boolean值,如果设置为true则代表用于对象在选中的时候
android:state_checkable:Boolean值,如果设置为true则代表用于对象允许选中的时候
android:state_checked:Boolean值,如果设置为true则代表用于对象被选中的时候
android:state_enabled:Boolean值,如果设置为true则代表用于对象可用的时候(响应触摸或点击事件)
android:state_activated:Boolean值,如果设置为true则代表用于对象被激活的时候
android:state_window_focused:Boolean值,如果设置为true则代表用于窗体获得焦点的时候
通过以上属性,就可以灵活的定制出期望的结果了,这次例子只是展示了android:state_pressed这一种状态的效果。Selector代码为上文提到的button_selector。效果如下所示
aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAT4AAAD7CAIAAAB8CG/UAAAgAElEQVR4nO2dX0wbZ773fxdc+CJSfZELX0Q6jMQFI0XnZKRcZKTonM1IHC2zzSY4IQ1OaKEOaaiXRmiUCzTiaN/IykVksStei+3La9Es7w7bpcfJLq05XU5NT5ut2SztsA1lSEJiJxhiCASHOMl0hWS/F48zTGxjbHCYDPl99FVknnmex4/j5zvPX88DM2HlcXyxuakBEAQxETN3lMfxxeZTDUYXBEGQYojenngcXzxzqoHe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nHjriNElQRCkCKC/98ObePoBgpgN+J3vf0/+8Hc8LgxBzAVc+vBXE9fHjh5+0+iSIAhSBNDzm46J6/IRtC6CmAr46MNfK9fHjtYcNLokCIIUAY51EcSUQH/v/7mlXD9eizPMCGIm4NP+34ZvKSeOHzW6JAiCFAEEP/tkOnyr4QQe0okgZgJGhj+7Px12NpwwuiQIghQBfD/yxYP70+/hIZ0IYirghnz14fzM+3hIJ4KYCgiP//XRwv2WM/iUDAQxE3BPGcVDOhHEdOAhnQhiSvAR6ghiStC6CGJK0LoIYkrQughiStC6CGJK0LoIYkrQughiStC6CGJKyPm6uCUDQUwGTE9+ixshEcR0QOSHa48W7v8Cf36AIKYCpr4PLc3Pvn8aD+lEEDMBE6P/sxCbfs+Jh3QiiJkA+S9/npuJnMIH3CCIqYBvvhiYuTvVcBIfK4cgZgK++PQPd2/fqK+rNbokCIIUAXza/9s7NyfqjtmNLgmCIEUA/t/5bk2O4/m6CGIu4ONLH96YuH7syCGjS4IgSBHA7z/qujHxfa0drYsgZgI+vvQbbHURxHTAJ/+v+5YyfvxojdElQRCkCOBPH390+8aEA2eYEcRUwOdX+iJTuK6LICYDvv78SjQy1VhfZ3RJEAQpAhj96r9i0ciphpNGlwRBkCKA8b8OL9yfPoOHdCKIqYBbY98szc+68JBOBDEV/x+L9U7pcGG+hgAAAABJRU5ErkJggg==" alt="" />
简单分析
再来看下press的那个item内容。
<!-- 按下状态 -->
<item android:state_pressed="true">
<shape >
<!-- 边框颜色 -->
<stroke android:width="1dip" android:color="#728ea3" />
<!-- 背景颜色 -->
<solid android:color="#FFFFcc" />
</shape> </item>
上图所示的按下效果是通过shape标签来完成的。这个标签用来指定背景的样式,由于这次重点介绍Selector的用法,Shape的用法就不过多解释了,只是把代码中出现的标签做下简单说明。
stroke:用来设定背景边框的样式,可以去定义它的宽度(width),颜色(color),是否为虚线展示等等
solid:用来设定背景颜色
后记
这篇文字只是简单的介绍了下Selector的大体用法,具体的灵活使用可以构造出很强大的显示效果。
原文地址:http://www.cnblogs.com/luoaz/p/3764784.html
完整Demo:https://github.com/xiaoai-opensource/Selector
solid