My app should allow users to style inputted or selected text in an Edittext. Some of these styles are Underline, Strike through, Bold and Italic. They are easily added but I
android.graphics.TYPEFACE.Default returns a Typeface, and the StyleSpan constructor takes an int as paramater.
android.graphics.TYPEFACE.Default
Typeface
StyleSpan
int
Try using :
android.graphics.Typeface.DEFAULT.getStyle()
instead of:
android.graphics.Typeface.DEFAULT