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
Post a Comment