I have a dynamically created ImageButton. Here is my code -
ImageButton bar = new ImageButton(this);
... //some code
parentView.addView(bar);
Ripple effect appears when I click the ImageButton. But when I add the following line -
bar.setBackgroundColor(Color.RED);
The ripple effect doesn't appear anymore. Is there any way to make the ripple effect appear on a colored ImageButton?
By ripple effect, I mean this effect - click here (I'm sorry but I cannot add the image here as gifs are not supported)
Aucun commentaire:
Enregistrer un commentaire