I'm trying to restrict characters for the EditText Wiget. Basically I want only alphanumeric and few other symbols. I can do this by capturing input from the keyboard and block it that way but was wondering if anyone knows if Android provides a more automated way. Looking at EditText properties I only see digit and password, there is no property where I can specify allowed/restricted characters.
How do I go about restricting an EditText so that it allows a float number with up to two decimal places of precision. Is there a built-in way to do this or will I have to do it manually by capturing events as the user types?