Android : Change Typeface of Edit Text for new text that is entered
问题 I want to have different typefaces for different parts of text in the same Edit Text. I have tried doing this to change Typeface : Typeface myFont = Typeface.createFromAsset(getAssets(), "droid-sans.ttf"); myEditText.setTypeface(myFont, Typeface.BOLD); I am using a button to make text BOLD. But this changes Typeface of the entire text that is already present in the EditText ! I want to keep existing text formatting and change Typeface for the text that will be entered after I click "Bold"