Thanks for a quick reply,

And sending a useful tip in modify an editViews InputType in code.

My problem is that if an InputTypes is set, as well as selecting the
soft keyboard view, this also controls many other features including
only allowing certain charaters (ie date time - [0-9 / : ) in the
textView. I have tried masking flags and class after setting the
InputType, and this does not appear to solve the issue, (Maybe I am
doing this incorrectly).

If I am using in code a pattern/match to check data integrity, i would
like to allow all characters to be applied, but intially from the
numbers/symbols soft keyboard view. Assuming that selecting a certain
keyboard view must be possible, as user keyboards can be defined.

I understand that InputType does greatly simplify defining editViews,
however this does lead to an inflexability when the required input
does not match the set definitions.

I guess that selecting keyboard view is linked somehow to IMEs,
inputMethods or such like.

Any clues?



On Nov 23, 2:52 pm, Nithin <nithin.war...@gmail.com> wrote:
> Hi Leigh,
>
> try this,
> editText.setInputType(InputType.TYPE_CLASS_NUMBER);
> this is for numbers.
>
> InputType contains lot of constants like TYPE_CLASS_DATETIME,
> TYPE_CLASS_PHONE etc. You choose according to your requirement.
>
> Thanks
>
> On Nov 22, 7:41 pm, "Leigh" <le...@lsalmon9.wanadoo.co.uk> wrote:
>
>
>
> > I have editText which accepts numeric details with an optional text suffix, 
> > (ie. 90.895t).
> > I am using addTextChangedListeners and pattern/match to ensure correct data 
> > entry.
>
> > Planning to call text soft keyboard in number/symbol view initally, with 
> > text view obtainable from this keyboard.
>
> > I have tried inputType variations, with the only suitable view being 
> > datetime,
> > this however only allows enrty text entry in the datetime format.
>
> > As the pre-existing attributes are ignored if inputType has been defined, 
> > there is no way of tweaking inputType attributes?
>
> > Or is there a simpler way of calling up specific soft keyboards (numeric, 
> > symbol, text)?- Hide quoted text -
>
> - Show quoted text -

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

Reply via email to