title: Android : How to set acceptable numbers and characters in EditText?
body: <p>I have to set acceptable characters "0123456789" and "semicolon" in the EditText. Below is the code I'm using.</p>
  
  <pre><code>android:digits="0123456789;"
  android:inputType="number|text
  </code></pre>
  
  <p>The problem with that implementation is in HTC phones, semicolon can't be entered but in Samsung and Sony Ericsson, semicolon can be entered. Another problem is when I entered semicolon in Samsung and Sony Ericsson, semicolon can't be deleted. Is there any missing property in the above code? Thanks in advance.</p>