android button的selector

实现按钮的selector

<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
 <item android:drawable="@drawable/common_topbar_route_bus_pressed" android:state_pressed="true"/>
    <item android:drawable="@drawable/common_topbar_route_bus_pressed" android:state_selected="true"/>
    <item android:drawable="@drawable/common_topbar_route_bus_normal" android:state_enabled="true"/>
    <item android:drawable="@drawable/common_topbar_route_bus_normal" />
</selector>
posted @ 2013-12-31 10:14  维克.贺仔  阅读(446)  评论(0编辑  收藏  举报