create edit text only accept or able to enter only alphabetical character from a-z only android
<p>i want to make a edit text in which can only be able to enter  only alphabatical character means from a-z no other numeric or special charaacter are not allowed so how to do it?</p>

<p>i had tried   </p>

<pre><code>&lt;EditText
     **android:inputType="text"**
     android:id="@+id/state" 
    android:singleLine="true"
    android:layout_marginTop="50dip" 
    android:layout_marginLeft="100dip" 
     android:layout_height="40dip"
      android:layout_width="200dip"
        /&gt;
</code></pre>

<p>but it accept all the values means numeric and special character also.so how to restrict it
means user can only enter a-z values.</p>
