android - Ellipsize within word possible? -


I have a list of items where words can be long and width of text view I would like the text to be ellipsized. Android: Layout_width = "100dp" Android: Layout_Height = "Wrap-Content" Android: MaxLines = "1" Android: ellipsize = "End" Android: Text = "* Something Long Word Longthanwidth "/ & gt;

The problem is, that output is * ... instead of * SomeVeryLongWordWhy ... . How do I get the above version?

You can use \ u00A0 instead of normal location icon < code> \ u00A0 its non-breakable space

Android: text = "* \ u00A0SomeVeryLongWordWhichIsLongerThanWidth"

Comments

Popular posts from this blog

Verilog Error: output or inout port "Q" must be connected to a structural net expression -

jasper reports - How to center align barcode using jasperreports and barcode4j -

c# - ASP.NET MVC - Attaching an entity of type 'MODELNAME' failed because another entity of the same type already has the same primary key value -