title: How to limit EditText length to 7 integers and 2 decimal places?
body: <p>I have an <code>EditText</code> box which have to allow user to enter upto 7 numbers and two decimal places. After entering seven digits,it should not allow to add one more digit but i may allow upto 2 decimal places. I use a decimal filter for 2 decimal places and this code in XML</p>
  
  <pre><code>android:maxLength="7"    
  android:imeOptions="actionDone"                  
  android:inputType="numberDecimal"
  </code></pre>
  
  <p>But <code>EditText</code> is allowing to <code>enter</code> 8 digits. How can this be solved?</p>