Sunday, February 16, 2014

How to make input box always appears in an activity in and capture their input?


Such as the title, even if the current focus is not the case in the text input box.<-! Main posts under Banner (D4) -><-! Posts under the main text (D5) ->
Reply:
Top,,,,,
Reply:
Top,,,,,
Reply:
Do not understand what you have to say
Reply:
Only ONKEY event control, as well as the keyboard ONKEY?
Reply:
reference to the third floor u010749756 reply:
do not understand what you have to say


Is the general user clicks on an input box will pop up input method, is a keyboard, what can make this keyboard box always appears on the form :)
Reply:
references, 5th Floor itakeblue reply:
Quote: references to the third floor u010749756 reply:

You do not understand what to say


Is the general user clicks on an input box will pop up input method, is a keyboard, what can make this keyboard box always appears on the form :)
you are to do the front desk, or background, the foreground is not designed to control because it is an internal event, the equivalent of calling you click the input box on the keyboard controls, change is necessary if you need to make changes to the sdk, very troublesome,,,
Reply:
You are going to enter a screen soft keyboard pops up automatically do?

Reply:
Customize Keyboard ~
Reply:
As long as the activity, and you can listen for key value
Reply:
reference to the 7th floor pengguohua1988 reply:
you to enter a screen soft keyboard pops up automatically do?


Yes, that this demand. Is there a way to achieve it?

reference to the 9th floor lieri111 reply:
as long as the activity, and you can listen for key value


Okay, thank you.
Reply:
Automatic pop-up is very simple Oh! Paste the code to your
InputMethodManager imm = (InputMethodManager) Your Activity.this.getSystemService (INPUT_METHOD_SERVICE);

imm.toggleSoftInput (0, InputMethodManager.HIDE_NOT_ALWAYS);
Reply:
InputMethodManager inputMethodManager = (InputMethodManager) getSystemService (Context.INPUT_METHOD_SERVICE);
inputMethodManager.showSoftInput (View your current screen object, 0);
Reply:
12 # of the bound object

No comments:

Post a Comment