title: How can I limit the EditText box input to two characters after a decimal place?
body: <p>i'm working on an android application with an EditText box. In this box i want the user to enter currency.</p>
  
  <p>I have already restricted the keyboard to numbers and decimals using the handy <em>android:inputType="numberDecimal"</em> but i would like to be able to stop the user from entering more than two digits after the decimal place (so that the content is saved as a currency and also just because i think it's important that the user is clear about what they're entering). </p>
  
  <p>However i don't have much programming experience and i don't know where to start looking (validation is a pretty huge topic haha). A bit of googling and it sounds like i should make my own extension of the InputFilter class but i'm not sure how to go about that or if there's a better way. So Any advice would really be appreciated!</p>