title: EditText : set number of characters programmatically
body: <p>I have a <code>EditText</code> , and I would like to restrict the <strong>number of characters</strong> which could be inputted in this <code>EditText</code>, and make this restriction <strong>programmatically</strong>, how to do it? For example, say I would like to restrict it to only allow 10 characters.</p>