android - no overlay is shown when clicking the button -


i changed style of button using following style

<style name="mybuttonstyle" parent="android:widget.holo.button">     <item name="android:background">@color/bg_color</item>     <item name="android:textstyle">bold</item>     <item name="android:textsize">22sp</item> </style> 

the style applied wanted, when click button blue overlay of pressed state no longer shown, how can recover it?

you setting custom background button , solid color, without state. blue overlay comes nine-patches of button

you should use selector here or better: button drawable generator


Comments

Popular posts from this blog

matlab - "Contour not rendered for non-finite ZData" -

delphi - Indy UDP Read Contents of Adata -

android - Hide only the Action bar on Scroll not action bar tabs -