Mo Adel Mo Adel - 3 months ago 54
Android Question

Rounded Corner for a Polygon (hexagon)

I am trying to achieve a rounded corner hexagon ImageView on Android

Exactly like this one but Hexagon :

enter image description here

I tried my best but failed in every possible way, i did find this answer which is perfect as it lets u enter number of sides required and it does the rest. but sadly it was for iOS, so i am not sure if it is helpful to anyone that know both languages, and can recreate it in android


I found a library that can accomplish that but that was after i done it myself, So here is the link to library and it does many shapes