0

I have a problem in input type attribute, I need a person name to be written in the edit text but when I run the application, the keyboard doesn't changed dynamically and it allows the user to enter any characters in the name field. Here is the code:

<TextView  
     android:layout_width="fill_parent" 
     android:layout_height="wrap_content" 
     android:text="Name:"/>

     <EditText  
         android:id="@+id/edittext"  
         android:layout_width="fill_parent"        
         android:layout_height="wrap_content" 
         android:inputType="textPersonName"    
     />
vbence
  • 20,084
  • 9
  • 69
  • 118
ZiZo
  • 61
  • 1
  • 3
  • 7

1 Answers1

0

It appears you can only use the input type attribute to limit to numbers. The link below might help you with you question.

https://stackoverflow.com/a/4401227/1157215

Community
  • 1
  • 1
Ccorock
  • 892
  • 12
  • 37
  • I just wanna solve it using the input type attribute. I don't wish to go through such codes. :s – ZiZo Sep 14 '12 at 17:34
  • It looks like its either a filter, or setting up a listener. EditText does not support the filter you need. – Ccorock Sep 14 '12 at 17:52