Hello I want to know how to highlight all Words that is inputted in the EditText and will appear in the TextView this post is related to this one Highlight Textview Using EditText
相关问题
- How can I create this custom Bottom Navigation on
- Bottom Navigation View gets Shrink Down
- How to make that the snackbar action button be sho
- Listening to outgoing sms not working android
- How to create Circular view on android wear?
One easy and quick way of highlighting a text, is to use string replace method. Replace the desire string with font tag
Say et is your EditText and tv is TextView object. Use the following code:
The result is: