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. Android emang wookeee

Barusan aja muncul notifikasi update android di HTC Dreamku, diminta untuk 
restart karna android akan melakukan update ke versi 1.6, sebelumnya masih 
versi 1.5.

Setelah restart, android menjalankan update ke v1.6. Kurang lebih 7 mnt, 
android restart sendiri dan... sekarang androidku naik versi ke 1.6 dengan 
cepat dan mudah!

Kereeeennn abis si android ini... perilakunya bener2 kayak robot! {*filter*}tara ini 
blom tau apa aja yg baru di android 1.6. 

Meskipun masih v1.6 blom v2.0 tp seneng bgt android melakukan update secara 
otomatis dan cepet.

Salam,

SyamSyah
 http://www.***.com/ 
--~--~---------~--~----~------------~-------~--~----~
=========================
Google Groups "Indonesian Android Community [id-android]" group.

To post to this group, send email to id-android@googlegroups.com

To request to subscribe to this group:

Click   http://www.***.com/ 
          Choice Apply for Group Membership

or 

 Please visit the following page:
  http://www.***.com/ 

To send a message to the owner, visit the following page:

  http://www.***.com/ ;hl=en-GB    or  
 
    id.andr...@gmail.com

For more options, visit this group at
 http://www.***.com/ 

To unsubscribe from this group, send email to
id-android+unsubscr...@googlegroups.com

Indonesian Android Community on Facebook

 http://www.***.com/ 

=========================
-~----------~----~----~----~------~----~------~--~---

2. OMX Component Integration- Getting crashed at event handler callback during audio playback.

You shouldn't be needing any changes in the callbacks. The callback
functions are generic, and should work for all cases. Can you post the
complete stacktrace? I would have expected the shared library names in
the stack trace, and some address.

-Ravi




-- 
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: 

3. Market android

4. mediastore thumbnails

5. Tutorial flash or upgrade

6. Fwd: How to disallow task switching

7. How to navigate between different screens