winter
winter

Reputation: 2917

Overflowing textview without overlaping view components in android

I want to make a textView on the left, and a fixed sized image on the right,
when the text reaches the end of the image it should start overflow itself
Can I implement it in android xml layout?

Here is an example:

dsadsadsadsadsadsa|================
dsadsadsadsadsadsa|================
dsadsadsadsadsadsa|===SOME IMAGE==
dsadsadsadsadsadsa|================
dsadsadsadsadsadsa|================
dsadsadsadsadsadsadsadsadsadsadsadsa dsadsadsadsadsadsadsadsadsadsadsadsa dsadsadsadsadsadsadsadsadsadsadsadsa dsadsadsadsadsadsadsadsadsadsadsadsa

Upvotes: 0

Views: 35

Answers (1)

tiny sunlight
tiny sunlight

Reputation: 6251

I think this library is what you want:

https://github.com/JustinAngel/TextViewOverflowing

Upvotes: 1

Related Questions