【问题标题】:Android: FlowLayout - break TextView at the end of the screenAndroid:FlowLayout - 在屏幕末尾打破 TextView
【发布时间】:2016-08-03 12:06:45
【问题描述】:

我在我的应用程序中使用FlowLayout (https://github.com/ApmeM/android-flowlayout) 并设置了水平方向。当我有一个很长的 TextView 时,我想将此 TextView 拆分为两个 TextViews。第一个 TextView 将位于屏幕的末尾,第二个 TextView 将从第二行的开头开始。

看截图(第 5 行):

您知道我该怎么做吗?不知何故容易:)

信息:

  • 主要布局是LinearLayout(垂直方向)

  • 在代码中我添加了 FlowLayout(每一行)

【问题讨论】:

    标签: android android-layout textview flowlayout


    【解决方案1】:

    我找到了一种解决方案(也许不是最好的):

    为每个字符创建自己的TextView 组件。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-08-02
      • 1970-01-01
      • 2016-11-04
      • 1970-01-01
      • 2021-02-06
      相关资源
      最近更新 更多