是否可以将 TextView 分割为两个三角形区域?

发布于 2024-12-28 11:57:59 字数 239 浏览 0 评论 0原文

如何像图像一样创建三角形 TextView(就像矩形的一半) 在此处输入图像描述

我需要将一个 TextView(矩形形状拆分为两个互补的三角形文本视图) 喜欢 在此处输入图像描述

这是否可能,有人可以给我建议如何做到这一点吗?

How to create triangular TextView ( to llok like half of rectangle ) like on image
enter image description here

I need to split one TextView ( rectangular shape to two complement triangular textviews)
like
enter image description here

Is this possible at all, can somebody give me advice how to do this ?

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

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

痴意少年 2025-01-04 11:58:00

为该文本视图使用适当的背景,您应该能够实现这一目标。使用 9 块图像来指定适当的填充和要标记为可拉伸的区域。

Use a proper background for that textview and you should be able to achieve this. Use a 9-patch image which specifies the proper padding and the areas to be marked as stretchable.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文