KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
Is it possible to define individual line spacings for each text line of a TextView ? Example: TextView tv = new TextView(context); tv.setText("line1\nline2\nline3"); The method setLineSpacing(float add, float mult) defines the line spacings for all text lines of the TextView . I would like to define another line spacing between line1 and line2 and a different line spacing between line2 and line3. Any ideas how to do this ? Does a spannable provide a solution ?
Tags (comma-separated)
Save Edits
Cancel