Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Sometimes image spans are not visible when content covers multiple lines in textview

I have a textview and I am trying to draw image spans along with some text in it.

Sometimes some of the images are not visible when the content wraps to the next line.

Anything that I should keep in mind while adding spans to a textview ?

Any other details i should furnish , I can paste my code here.

like image 212
Vinayak Bhavnani Avatar asked Aug 10 '14 12:08

Vinayak Bhavnani


People also ask

How to restrict the maximum number of lines in text view?

If you want to restrict the maximum number of lines in a text view , you can simply add the to your Text View. Hope this helps. If this was not required, feel free to ask it with proper example.

Why can't I see text wrapping?

Text wrapping is a normal aspect of "flow" content in an HTML document. You're not seeing it in this example because you've specifically separated lines into separate elements. < p class = "result" > [?] What more would you like to know? Enter 0 for Skills, 1 for Qualifications,2 for About, 3 for Projects and 4 for Contact details. </ p >

How do you write in a new line in text view?

CASE 1 : Writing in a new line in Text View. You can change lines using new line character ‘n’. Place this where the lines need to be changed. This will give you the desired format of the Text. Beware that the new line character should be appended with the word (“nHi”) and not with a space (“n Hi”).


1 Answers

So , there is a development I replaced the ' ' by a ':' and everything is working fine. So , the only question is what is the difference in using a ' ' or a ':' in this context.

like image 73
Vinayak Bhavnani Avatar answered Oct 20 '22 19:10

Vinayak Bhavnani