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.
我想在视图中设置一个句子,但我想在句子的每个单词上设置监听器,并且该句子将添加到视图运行时。所以我在水平线性布局中添加文本视图,但是如果行结束我怎么能在新行上添加文本视图或为我的问题提出一些其他解决方案。
你需要TextView.getOffsetForPosition
TextView.getOffsetForPosition