简体   繁体   中英

Rounded Corner for a Polygon (hexagon)

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

Exactly like this one but Hexagon :

在此输入图像描述

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

我找到了一个可以实现这一目标的库,但那是在我自己完成之后,所以这里是图书馆的链接 ,它有很多形状

use this lib

this can be helpful for you . i used this and made just like yours.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM