How to create "floating TextViews" in Android?

Posted by Sotapanna on Stack Overflow See other posts from Stack Overflow or by Sotapanna
Published on 2011-01-07T16:00:08Z Indexed on 2011/01/07 16:54 UTC
Read the original article Hit count: 174

Filed under:
|
|
|

Hi stackies,

I'm programmatically putting various TextViews into a LinearLayout with a horizontal orientation.

After 2h of research I couldn't find out how to tell Android not to squeeze all the TextViews in one line but instead to "float" non-fitting TextViews into the next line.

I know there isn't something like actual "lines" in a LinearLayout, but how can I tell the TextViews to actually behave like floating DIVs from the HTML world?

Thanks alot!

Be well
S.

© Stack Overflow or respective owner

Related posts about android

Related posts about alignment