Mark,

Your suggestion, to use android:editable="false" in EditText in the
layout XML, works! (Thank you!)

But, the issue now, is that this constant (android:editable) is
deprecated. See: 
http://developer.android.com/reference/android/R.attr.html#editable

The documentation at the above URL says "Use inputType instead."

So I looked at: 
http://developer.android.com/reference/android/R.attr.html#inputType
and tried:

android:inputType="none"

However, that had no effect whatsoever -- the soft keyboard still
appeared.

Any ideas?



On Jun 29, 9:43 am, Mark Murphy <[email protected]> wrote:
> Alex B wrote:
> > In portrait mode, I have a custom, on-screen keypad for the user to
> > enter data with.
>
> > In landscape mode, the user will enter data with the physical
> >keyboard.
>
> > People with Android phones without physical keyboards will always be
> > in portrait mode - using the custom on-screen keypad.
>
> > There are two or more text input fields on any given screen in my app
> > - so the user touches them (to focus the text input fields) and then
> > based on the orientation (portrait or landscape) uses either the on-
> > screen keypad or the physicalkeyboard.
>
> > I am using EditText input fields - and the above reasoning is why I
> > don't want the softkeyboardto interfere.
>
> > Should I be using something other than EditText input fields?
>
> Make the EditText input fields be non-editable, except in the
> physicalkeyboard+landscape combination.
> Use android:editable in your layout XML to achieve this.
>
> Your non-standard keypad must already be using setText() or something on
> the EditText in order to adjust its values based on button clicks or
> gestures or whatever you're using. None of that would need to change.
>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://twitter.com/commonsguy
>
> Android App Developer Training:http://commonsware.com/training.html
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Android Discuss" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/android-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to