EditText Values in range
<p>I would like to enter the values in a range like 1-60. The <code>EditText</code> shouldn't accept values like 61,62..., or 0,-1,-2...</p>

<p>How can we give the range 1-60 to <code>EditText</code> in android?
I have done in main.xml as</p>

<pre><code> &lt;EditText android:layout_height="wrap_content" 
    android:id="@+id/editText1" 
    android:layout_width="160dip" 
    android:inputType="number"&gt;
    &lt;/EditText&gt;
</code></pre>
