Font family (named by string) for the text. but our method has to clear EditText which is clicked by user . Yes it is. Your problem is related to the onClickListener. add.setOnClickListener(new View.OnClickListener() { In Android , many views inherit from TextView such as Buttons, EditTexts, RadioButtons which We can change the text color , change the typeface, add an underline , etc, and apply these to only certain portions of the text. p more. i think android produce a numeric id for every Elements in activity during the Run time . Students and software developers can leverage this portal to find solutions to their various queries without re-inventing the wheel by referring to our easy to understand posts.