'How would I go about intercepting EditText like Dropbox Passwords

I'm looking to achieve some specific functionality that I've observed using the Dropbox Passwords app.

The app can seemingly intercept the user editting a text (I'm assuming it's an EditText). I'm wondering how I can do this myself!

Example with Snapchat:



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source