How to bold or italic or underline the selected text in Edittext programatically
问题 I have to develop an App like sticky note. User enter the text in Edittext, while selecting the text I will open the popup to select the option like (BOLD,ITALIC,UNDERLINE). when user select the options i need to change the selected text.. Does anyone go through this? 回答1: If you have found a way the popup the options and how to retrieve the selected option(Bold, Italics, Underline), Then use this to format the text private void formatText(EditText editText) { int end = editText.length(); /