When I display a whitespace followed by long string in android textview, it skips the first line and displays the actual string on the next -


i having trouble while displaying string in textview

policyvaltv.settext(": " +trimpolicyno); 

problem if trimpolicyno long string, textview(policyvaltv) displays whitespace breaks line , displays actual string on next line. how can avoid this? want display on 1 line not keep singleline = true. please help

try policyvaltv.settext(":\u00a0" +trimpolicyno); \u00a0 unicode char non breaking space.


Comments

Popular posts from this blog

javascript - Karma not able to start PhantomJS on Windows - Error: spawn UNKNOWN -

Nuget pack csproj using nuspec -

c# - Display ASPX Popup control in RowDeleteing Event (ASPX Gridview) -