Thursday, December 20, 2012

[android-developers] Behaviour of EditText.

Hello,

I have lot of edittext in my application some of contains (Numberic,Text,Date) data only .
but i want to use "setInputType(InputType.TYPE_TEXT_VARIATION_FILTER);" to avoid "add dictonary".
so i add  this code in my 

EditTextClass extends EditText
{

public EditTextClass()
{

init();
}

public void init()
{
setInputType(InputType.TYPE_TEXT_VARIATION_FILTER);
}
}

and for making edittext numberic  i am using  android:inputtype = "numeric " in my xml.
but after running the code ,i observe the output that softkeyborad for numeric edittext showing the text words i.e A to Z.

is there any way to avoid "add dictionay".



--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate