You need an object of type Editable, this object will store the text that the user typed and also need an objecto of type StyleSpan. The StyleSpan class allow you use different styles over your EditText component, here a very small example:
Sorry, my english isn't good
source:
http://www.sgoliver.net/blog/?p=1373