-1

How I get notified when the keyboard is going up?

I has a FrameLayout and it doesn't get resized when it's goes up, so I need to translate the screen myself.

This is my actual layout XML

<?xml version="1.0" encoding="utf-8"?>
<FrameLayout android:orientation="vertical"
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent" android:layout_height="match_parent"
android:layout_weight="1">
<br.view.image.ScrollableImage
    android:id="@+id/image01" android:layout_width="match_parent"
    android:layout_height="match_parent" />
<br.view.TopBarView android:id="@+id/topBar"
    android:layout_width="match_parent" android:layout_height="wrap_content" />
<br.view.BottomBarView
    android:id="@+id/bottomBar" android:layout_gravity="bottom"
    android:layout_width="match_parent" android:layout_height="wrap_content" />
</FrameLayout>

From inside the BottomBar I open a PopupWindow wich a EditText and a Button.

When touch the EditText, the soft keyboard just overlay the bottom of the screen covering even the popup window.

Marcos Vasconcelos
  • 18,136
  • 30
  • 106
  • 167

1 Answers1

1

See this SO question Android: which event fires when on screen keyboard appears?

Community
  • 1
  • 1
Jim Blackler
  • 22,946
  • 12
  • 85
  • 101