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 physical keyboard. > > I am using EditText input fields - and the above reasoning is why I > don't want the soft keyboard to interfere. > > Should I be using something other than EditText input fields?
Make the EditText input fields be non-editable, except in the physical keyboard+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 -~----------~----~----~----~------~----~------~--~---
