Android: Adding Badge To Corner Of Drawable On A Button
What is the best way to add a badge icon (Circle with a number in it) to a button's drawable? The drawable is just an image. I was hoping there would be a way to change what I am u
Solution 1:
If you want it as a Drawable
you have to create a Bitmap
where you draw the circle and the number onto the image of the button.
But I would do it like this: Place the badge as an ImageView
and a TextView
above your button, so you can easily edit the text of the TextView
Post a Comment for "Android: Adding Badge To Corner Of Drawable On A Button"