Reconciling Status Bar Bug with IME (soft keyboard) interaction

by Paul Pucciarelli » Tue, 25 Jan 2011 02:53:17 GMT


Sponsored Links
 Some people have noticed if you have a fullscreen app,
which you leave and then resume, the status bar pushes your app window
down.

Others have pointed out this can be fixed with:

getWindow().setFlags(WindowManager.LayoutParams.FLAG_LAYOUT_NO_LIMITS,
WindowManager.LayoutParams.FLAG_LAYOUT_NO_LIMITS);


This of course breaks the IME, in that it no longer slides the window
upward - so the soft keyboard hides the editText you are trying to
type in.

I have worked around this issue with

_someEditText.setOnFocusChangeListener(new
View.OnFocusChangeListener() {
                        public void onFocusChange(View v, boolean hasFocus) {
                                if (hasFocus) {
        
getWindow().clearFlags(WindowManager.LayoutParams.FLAG_LAYOUT_NO_LIMITS);
                                } else {
        
getWindow().setFlags(WindowManager.LayoutParams.FLAG_LAYOUT_NO_LIMITS,
WindowManager.LayoutParams.FLAG_LAYOUT_NO_LIMITS);
                                }
                        }
                });

while leaving the initial setflags in onCreate as well.

-- 



Other Threads

1. UNLOCK HTC Dream

Kawan2 id android,
gw berencana untuk beli HTC G1 di eBay, sebenernya untuk spare part
pengganti HTC G1 gw yang sedang dalam kondisi bata..

tapi sepertinya kalo beli di eBay, semuanya udah make T-mobile dan
engga di unlock,
apakah itu berpengaruh ke Motherboard nya (yang pgn gw copot utk
reparasi)?

kalo iya, gimanakah cara unlocknya?

thanks in advance!

-- 
--------------
"Indonesian Android Community [id-android]" 

2. Web Apps for Dummies?

Hi there

I've been working on websites since I was a kid, and I've gotten more
and more interested in mobiles as a browser over the last couple of
years. I've made a website that is viewable on a mobile (android etc)
but I want to take it a step further and integrate a website in to an
app.

I help run an online wiki, and I'd love to have it so that a mobile
optimised version of the wiki appeared at the top, and the menu button
merely put them on the correct categories (wiki pages like items,
characters, areas, cultures etc).

Unfortunately for me, android is the only thing that's really inspired
me to actually start working on this sort of thing, and I have no
previous java experience, just 10 or so years of html/php/mysql/css.

so my question is, is there a great list of tutorials out there that I
can use to get to this goal? I've looked around the web, but all I've
been able to find is out dated tutorials that seem to create more
errors than they actually help me. Nothing specifically out there for
web that I can find either.

I'm sorry if that's confusing as a request, if it helps, engadget.com
have pretty much exactly what I'm looking to build.


Thanks for reading, and I appreciate any help greatly.

-- 

3. PowerManager userActivity() ... how does this work?

4. Out of Memory for Large Images

5. 铮? IPhone dan Android (N1

6. Just getting started

7. Memory profiling for my Android application