Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个 GridView 用于显示多行数字(见图)。
我希望每一行都以第 n 行的“第 n 行”标题开头。
但是,包含“Row n”的 TextView 被其他数字遮挡。显示的数字越多,遮挡越差。
如何让我的“Row n”TextView 完整显示?
仅供参考:gridview 具有重力:中心,拉伸模式:columnWidth,高度和宽度是填充父级。
包含“第 n 行”的文本视图具有重力:LEFT,数字具有重力:CENTER_HORIZONTAL
据我所知,在处理同样的问题时,GridView 列的宽度必须相同。使整个“Row n:”标签可见的唯一方法是减少列数,从而使每列更宽,否则请尝试使用 TableView。
尝试将 wrapContent 设置为 TextView 宽度