Anko: textStyle and lineSpacingExtra

Created on 15 May 2016  路  3Comments  路  Source: Kotlin/anko

I'm experimenting with anko and while anko is great, I can't find two TextView attributes textStyle and lineSpacingExtra. Any ideas how to implement them?

fixed question

Most helpful comment

Personally for me setting typeface instead of textStyle worked great. This question StackOverflow may be useful: http://stackoverflow.com/questions/7919173/android-set-textview-textstyle-programmatically

All 3 comments

You can use

setLineSpacing()

Yeah setLineSpacing() does it for the line height.

Personally for me setting typeface instead of textStyle worked great. This question StackOverflow may be useful: http://stackoverflow.com/questions/7919173/android-set-textview-textstyle-programmatically

Was this page helpful?
0 / 5 - 0 ratings