I am trying to get the Dynamic Or Live word count for an Edit Text. To explain the problem, I have an EditText and a Textview inside a fragment, whenever the user enters a sentence in the EditText it should automatically count the number of words occurring in that sentence and display the number of words in the TextView.
I have implemented the Text Watcher but can't figure out the code snippet.
Any help will be appreciated.