绛斿: hiding a forcib ly opened soft keyboard...

by sdphil » Thu, 12 Nov 2009 11:29:53 GMT


Sponsored Links
 I'm basically doing what you show here.

What I mean by "forced" soft keyboard is when you hold down the menu
key.

It doesn't make it go away.  I tried using
view.getApplicationWindowToken vs. view.getWindowToken

and it did not make any difference.  so something else must be going
on...





> > >



绛斿: hiding a forcib ly opened soft keyboard...

by Dianne Hackborn » Thu, 12 Nov 2009 12:07:41 GMT


 h sorry 0 is correct here.  Are you sure the window you are passing in
actually currently has input focus? Fwiw, the framework code that
hides/shows the IME from long pressing on menu does basically the same thing
-- shows with the force flag, hides with 0 flags.

2009/11/11 sdphil <phil.pellouch...@gmail.com>

> > > >


Sponsored Links


绛斿: hiding a forcib ly opened soft keyboard...

by sdphil » Thu, 12 Nov 2009 14:36:44 GMT


 'm not sure about the view, but i'm sure the top most window is there
-- and i thought that's what --

getApplicationWindowToken --
Retrieve a unique token identifying the top-level "real" window of the
window that this view is attached to.

was supposed to take care.

Can I do a view.requestFocus() before calling this to ensure it has
focus?

On Nov 11, 8:06 pm, Dianne Hackborn <hack...@android.com> wrote:
> > > > >



Other Threads

1. I can't see anything on the webview control

First, I'd like to let you know that i can use internet on the android
emulator

So, I just used webview control to see the internet.

But There was a white background and I can't see anything.

You might ask me about setting manifest ......

well, i already make it setup

<uses-permission android:name="android.permission.INTERNET"></uses-
permission>

So i checked LogCat ... I saw errors like below :


09-26 04:45:27.458: DEBUG/InetAddress(754): tools.google.com:
74.125.153.102 (family 2, proto 6)
09-26 04:48:36.487: ERROR/Gears-J(754): Connection IO exception
09-26 04:48:36.487: ERROR/Gears-J(754): java.net.SocketException: The
operation timed out

.....
....
...

Please i hope your help.... please please....

thanks    have a nice day

--~--~---------~--~----~------------~-------~--~----~

2. customized radiobutton

I tries to modify the look of radiobutton:
<style name="MyRadioButton"
parent="android:Widget.CompoundButton.RadioButton">
        <item name="android:textColor">#FF0000</item>
        <item name="android:background">@drawable/btn_radio</item>
</style>

android:background doesn't seem to be the right property, the radio
button image gets stretched and placed in the background of the radio
button itself and its label.
thanks for any pointers

--~--~---------~--~----~------------~-------~--~----~

3. Rencana Besar [WTA] Push Mail

4. get checked items form list

5. ADC2 entry: MultiBubbles

6. GPS>>Upload .kml files doesn't work !!!!

7. Spek htc magic