Posted By

ximiboy on 10/25/12


Tagged

style xml button


Versions (?)

Button style


 / Published in: XML
 

Style button

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <selector xmlns:android="http://schemas.android.com/apk/res/android">
  3.  
  4. <!-- default -->
  5. <item android:drawable="@drawable/btn_blue" android:state_pressed="false"/>
  6. <!-- pressed -->
  7. <item android:drawable="@drawable/btn_blue_pressed" android:state_pressed="true"/>
  8. <!-- disabled -->
  9. <item android:drawable="@drawable/btn_disabled" android:state_enabled="false"/>
  10.  
  11. </selector>

Report this snippet  

You need to login to post a comment.