如何在Android的“ MaterialTextView”中实现以下设计?

问题描述 投票:0回答:1

是否有可能在Android的“单个MaterialTextView”中实现此设计?否则有什么方法可以实现(单文本视图)?请分享您的建议,谢谢。

enter image description here

android textview material-design material-components-android material-components
1个回答
0
投票

您应该在视图中放置3个TextView,并为其提供1 dp的边距,或者在它们之间添加1 dp的视图。并设置文字对齐中心。将文字颜色设置为白色,并为其设置背景。

© www.soinside.com 2019 - 2024. All rights reserved.