I am working with an edit text to support the properties of bold,italic and underline.I got succeed after selecting the text and make it bold. Now I want to remove the bold
Similar to what you have used in first onClick() instead of s.setSpan(new StyleSpan(android.graphics.Typeface.BOLD), startSelection, endSelection, 0); use s.setSpan(new StyleSpan(android.graphics.Typeface.NORMAL), startSelection, endSelection, 0); in the second onclick().