Quantcast
Channel: Background doesn't wrap on multi-line TextView - Stack Overflow
Browsing all 5 articles
Browse latest View live

Answer by Piyush for Background doesn't wrap on multi-line TextView

<TextView .... android:maxWidth="your preffered width"//prefer size in dp android:maxLines="number of lines you want" .... />

View Article



Answer by JstnPwll for Background doesn't wrap on multi-line TextView

I think this is just how TextView works. Unless you specify a fixed width or maxWidth, the "wrapping" of the text assumes that the text will now fill the available horizontal space. Your only option is...

View Article

Answer by Piotr Golinski for Background doesn't wrap on multi-line TextView

Delete this line: android:layout_alignParentRight="true"

View Article

Answer by Sherif El Nady for Background doesn't wrap on multi-line TextView

this is beacuse of android:paddingRight="26dp" , remove it.

View Article

Image may be NSFW.
Clik here to view.

Background doesn't wrap on multi-line TextView

I have the following TextView with layout_width set to "wrap_content", like so<TextView android:id="@+id/my_id" android:layout_width="wrap_content" android:layout_height="wrap_content"...

View Article

Browsing all 5 articles
Browse latest View live


Latest Images