圆角圆角(六边形) [英] Rounded Corner for a Polygon (hexagon)

查看:224
本文介绍了圆角圆角(六边形)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在Android上实现圆角六角形ImageView

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

完全像这个Hexagon:

Exactly like this one but Hexagon :

我试过了最好但失败在每一个可能的方式,我没有找到答案是完美的,因为它让u输入所需的边数,它做剩下的。但是不幸的是它是为iOS,所以我不知道如果它是有帮助的任何人都知道这两种语言,并可以在Android中重新创建它

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

这篇关于圆角圆角(六边形)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆