[android-developers] Re: Hide the virtual keyboard

2013-01-07 Thread Sudarshan Bhat
Another user case is a passcode screen. I have four edit texts. I have my own buttons as the Samsung's default keyboard doesn't work well with TextWatcher. I am creating my own keyboard for that reason. But the keyboard keeps showing up :( On Wednesday, April 29, 2009 12:33:46 AM UTC+5:30,

Re: [android-developers] Re: Hide the virtual keyboard

2012-07-27 Thread johnbaum
Can you point us to any calculator apps on the Play Store that appear to use an EditText widget and have the behavior that you desire? The one I use (Droid48) does not use an EditText. e.g. Mobi Calculatorhttps://play.google.com/store/apps/details?id=my.android.calc -- You received

[android-developers] Re: Hide the virtual keyboard

2012-07-26 Thread johnbaum
If anyone out there has figured this out in a way that does not lose the usual functionality of the input fields, please reply. Is there still no solution to tis problem? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to

Re: [android-developers] Re: Hide the virtual keyboard

2012-07-26 Thread Justin Anderson
You're going to have to provide more information... In what cases do you want to hide the keyboard? Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Wed, Jul 25, 2012 at 2:46 PM, johnbaum roman.hueb...@gmail.com wrote: If anyone out there has figured

Re: [android-developers] Re: Hide the virtual keyboard

2012-07-26 Thread johnbaum
You're going to have to provide more information... In what cases do you want to hide the keyboard? I'm working on a calculator app. The calculator has a keypad which is used to write the expression into an edittext field. Setting the input method to null or eating the touch event doesn't

Re: [android-developers] Re: Hide the virtual keyboard

2012-07-26 Thread Mark Murphy
On Thu, Jul 26, 2012 at 4:27 PM, johnbaum roman.hueb...@gmail.com wrote: I'm working on a calculator app. The calculator has a keypad which is used to write the expression into an edittext field. Can you point us to any calculator apps on the Play Store that appear to use an EditText widget and

Re: [android-developers] Re: Hide the virtual keyboard

2012-07-26 Thread Justin Anderson
Can you point us to any calculator apps on the Play Store that appear to use an EditText widget and have the behavior that you desire? The one I use (Droid48) does not use an EditText. I like this one... I don't know for sure if it is an EditText, but it sure looks like it and it has the

Re: [android-developers] Re: Hide the virtual keyboard

2012-07-26 Thread Mark Murphy
On Thu, Jul 26, 2012 at 6:29 PM, Justin Anderson magouyaw...@gmail.com wrote: I like this one... I don't know for sure if it is an EditText, but it sure looks like it and it has the behavior the OP is trying to get: https://play.google.com/store/apps/details?id=org.thismetalsky.calCOOLator

[android-developers] Re: Hide the virtual keyboard

2009-06-23 Thread Alex B
Thanks Lexxuz. The solution you provided works only in the sense that it prevents the soft keyboard from revealing itself - but it is still a hack. Here's why: I have a hint in each of my text fields (EditText input fields). When I *press* into the fields (i.e. focus them), the hints disappear -

[android-developers] Re: Hide the virtual keyboard

2009-06-05 Thread Lexxuz
Have been struggling with the same problem. Solved by a combination of methods suggested above. I set the input type for my editor to NULL only for the time of processing the touch event. Like this - MyEditor.setOnTouchListener(new OnTouchListener(){ @Override public boolean onTouch(View

[android-developers] Re: Hide the virtual keyboard

2009-06-02 Thread Alex B
I'm still trying to figure out how to suppress the soft keyboard from showing because I have my own custom buttons for input. I have several EditText input fields, and all of them get filled by the custom on- screen buttons. I don't want the soft keyboard to show up at all. Could someone please

[android-developers] Re: Hide the virtual keyboard

2009-06-01 Thread Alex B
Anyone know how to suppress the soft keyboard? On May 29, 8:59 am, Alex B alexba...@gmail.com wrote: Actually, there's still a problem. I only want suppress the softkeyboardfrom showing up -- because I have a custom on-screen keypad. Consuming the touch event suppresses the softkeyboard,

[android-developers] Re: Hide the virtual keyboard

2009-06-01 Thread Sujay Krishna Suresh
arent u able to use setfocus to give ur keypad the focus??? On Mon, Jun 1, 2009 at 8:03 PM, Alex B alexba...@gmail.com wrote: Anyone know how to suppress the soft keyboard? On May 29, 8:59 am, Alex B alexba...@gmail.com wrote: Actually, there's still a problem. I only want suppress

[android-developers] Re: Hide the virtual keyboard

2009-06-01 Thread Alex B
I guess I could setfocus when the field is touched, but that feels like I'm manually adding functionality back to the text field (edittext) -- which leads me to ask: what other functionality is lost by eatting the touch event? Frankly, I feel that this capture-the- touch-event-and-eat-it approach

[android-developers] Re: Hide the virtual keyboard

2009-05-29 Thread Alex B
Indeed, Sujay, thank you! This will disable (suppress) the soft keyboard: editText_input_field.setOnTouchListener(otl); private OnTouchListener otl = new OnTouchListener() { public boolean onTouch (View v, MotionEvent event) { return true; // the listener has

[android-developers] Re: Hide the virtual keyboard

2009-05-29 Thread Alex B
Actually, there's still a problem. I only want suppress the soft keyboard from showing up -- because I have a custom on-screen keypad. Consuming the touch event suppresses the soft keyboard, but it also holds the focus on the text field, making it impossible to touch another text field. I have

[android-developers] Re: Hide the virtual keyboard

2009-05-28 Thread Alex B
Hi Dianne, How to eat it? I too want to prevent the soft keyboard from showing when the EditText is touched. private OnClickListener ocl = new OnClickListener() { public void onClick(View v) { // how to eat the event? } }; On May 13, 9:36 am, Dianne

[android-developers] Re: Hide the virtual keyboard

2009-05-28 Thread Sujay Krishna Suresh
Hi alex i think u could solve ur problem by using the onTouchListener rather since it returns a boolean stating whether u handled the event or not if u want to show the keyboard return false... else return true... i'm not very sure that this is wat u want... but u can give it a try On

[android-developers] Re: Hide the virtual keyboard

2009-05-26 Thread AusR
Hi, I'm trying to close the soft keyboard once a search button is clicked with: // close soft keyboard InputMethodManager inputManager = (InputMethodManager) ShowSearchQuery.this.getSystemService(Context.INPUT_METHOD_SERVICE);

[android-developers] Re: Hide the virtual keyboard

2009-05-26 Thread AusR
Ah it worked with HIDE_NOT_ALWAYS ! On May 26, 9:53 am, AusR austinjr...@gmail.com wrote: Hi, I'm trying to close the soft keyboard once a search button is clicked with: // close soft keyboard InputMethodManager inputManager = (InputMethodManager)

[android-developers] Re: Hide the virtual keyboard

2009-05-13 Thread Strickidinho
Ok, I've found the answer myself and it was so easy. EditText.setInputType(InputType.TYPE_NULL); That's all. Or you set the inputType in the XML Attribute to none. On 12 Mai, 13:19, stsandr...@googlemail.com stsandr...@googlemail.com wrote: Hi, I have a similar problem. I want that no

[android-developers] Re: Hide the virtual keyboard

2009-05-12 Thread stsandr...@googlemail.com
Hi, I have a similar problem. I want that no softkeyboard appears, when I tap on one of my textedit fields, because I've created some buttons to do the input. I've tryed out some code like this: InputMethodManager in = (InputMethodManager)getSystemService (Context.INPUT_METHOD_SERVICE);

[android-developers] Re: Hide the virtual keyboard

2009-04-29 Thread simon
Thanks, it worked. On Apr 29, 1:32 am, Dianne Hackborn hack...@android.com wrote: The method you want is this: http://developer.android.com/reference/android/view/inputmethod/Input..., int) The token is retrieved with this:

[android-developers] Re: Hide the virtual keyboard

2009-04-28 Thread Dianne Hackborn
The method you want is this: http://developer.android.com/reference/android/view/inputmethod/InputMethodManager.html#hideSoftInputFromWindow(android.os.IBinder, int) The token is retrieved with this: http://developer.android.com/reference/android/view/View.html#getWindowToken() On Tue, Apr 28,