android-flowlayout icon indicating copy to clipboard operation
android-flowlayout copied to clipboard

Support for TextView and Edit Text

Open nagaprakash2020 opened this issue 9 years ago • 2 comments

I tried your library with combination of TextViews and Edit Texts. TextView spans multiple lines followed by Edit Text and this can be followed by another Edit Text or Text View.

Example: Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus sed elit elementum, maximus tortor id, vulputate urna. Ut ultricies magna vel leo pretium rhoncus. __________________ Lorem ipsum dolor sit amet, consectetur _____________ __________________.

That is what I am trying to achieve. Do you think that can be done using your library ?

nagaprakash2020 avatar Feb 05 '16 21:02 nagaprakash2020

I expect that what you're seeing is something like

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus sed elit elementum, maximus tortor id, vulputate urna. Ut ultricies magna vel leo pretium rhoncus. __________________ Lorem ipsum dolor sit amet, consectetur _____________ __________________.

with an unexpected line break after rhoncus. If that's the case, what's happening is that the entire TextView is being laid out as a block, and the EditText is wrapping since the block fills the entire line. The issue can be avoided by splitting up the TextView into many smaller ones with one word each. This allows the FlowLayout to work with many small rectangles rather than one big one.

DavidDTA avatar Feb 05 '16 21:02 DavidDTA

That is a good idea. I will try it. Thanks for your quick response.

nagaprakash2020 avatar Feb 05 '16 21:02 nagaprakash2020