0

I wanted to create a rounded button in Android with varying images for the background. These images will be downloaded from the internet...and the shape of the images vary (square, rectangle, etc.). Is there anyway to achieve this with just a Button?

I read the following posts:

Rounded Button in Android

How to make the corners of a button round?

Problem with those implementations is that they only allow for a certain background to be applied. Is there anyway to do this with the background being the image I set but still with rounded corners? My only alternative to this is to have an invisible button on top of an ImageView...but i'd rather not go that route if I can avoid it...

Community
  • 1
  • 1
KVISH
  • 12,923
  • 17
  • 86
  • 162

1 Answers1

0

Found a good library:

https://github.com/vinc3m1/RoundedImageView

This library makes it easy to have rounded images inside the imageview.

KVISH
  • 12,923
  • 17
  • 86
  • 162