gpt4 book ai didi

android - 如何将 TextView 中的文本设置为两行?

转载 作者:塔克拉玛干 更新时间:2023-11-02 19:07:10 27 4
gpt4 key购买 nike

有没有办法以编程方式将 TextView 中的文本设置为两行?

最佳答案

键入\n换行

This will be\ntwo lines

看起来像

This will be
two lines

此外,请确保 TextViews setsingleline() 未设置为 true

关于android - 如何将 TextView 中的文本设置为两行?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7791829/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com