android裁剪drawable
我有一个小项目,其中我以可绘制形式从互联网下载图像,并在 Imageview 中使用它们,我提供了类似于 Imagebutton 的功能,但没有灰色边缘。
问题是,Android 中是否有任何功能(类似于 iphone),我们可以通过该功能从边缘裁剪可绘制对象,使它们成为圆边可绘制对象......
即使它是“未测试,也不推荐”的方法,请让我知道...我想在这方面做一些工作...提前谢谢大家...
I have a small project in which i download images from internet in the form of drawable and use them in Imageview for which i have provided functionality similar to an Imagebutton but without the gray edges.
The question is that is there any functionality in Android(similar to iphone) by which we can crop the drawable from edges to make them rounded edged drawable...
Even if its a "not-tested-neither-recommended" method, do let me know... i would like to work on this a bit... thanx in advance folks...
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我相信这可能是您正在寻找的链接:如何我应该在 Android 中为图像提供圆角吗?
我尝试使用可绘制和嵌套的元素来实现此目的,但无法使可绘制图像正确显示。不确定是否有办法让它发挥作用。
I believe this is probably the link you're looking for: How should I give images rounded corners in Android?
I tried doing it with a drawable and nested and elements, but wasn't able to get the image drawable to show properly. Not sure if there's a way to get this working or not.