形状,材料您和Android小部件

发布于 2025-01-22 18:30:14 字数 244 浏览 7 评论 0原文

我正在修改我的应用程序的小部件以遵循您指南的最新材料,我发现了许多很棒的灵感来看,例如:

​(例如,在这些屏幕截图中使用的其他完全不同的示例(例如图像)在其他完全不同的示例中也看到了时钟的圆形图像或“多边形”形状?据我所知,遵循Google的中等文章和指南,唯一容易获得的效果是圆角。

因此,简而言之:是否有一种简单的来制作图像视图圆形并使用形状,或者我只需要手动获取它们并以编程方式添加它?

I'm revamping my app's widget to follow the latest Material You guidelines, and i found many great inspirations looking at the screenshots from Google, like this one for example:

Android 12 widget examples

The main question is, are the shapes (for example, the circular image or the "polygonal" shape of the clock, which i also saw in other examples of totally different nature, like images) used in those screenshots easy to use? As far as i can tell following the Medium articles and guides from Google, the only easy effect to obtain are the rounded corners.

So, to be concise: is there an easy way to make an imageview circular and use shapes, or i simply have to obtain them manually and add this in programmatically?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文