Android: copy / paste panel pushed out of screen using soft keyboard

When I double-tap a word in my edittext, the copy / paste panel is shown. Good. The problem is the copy / paste panel appears on the screen. It seems ... he's being nudged by the soft keyboard. See screenshot.

enter image description here

My question is, how do I make the copy / paste panel fixed so that it doesn't move?

I am using "adjustPan" in my manifest.

+3


source to share


2 answers


Finally I found a solution to my problem. Maybe this is helpful to someone else ...

  • use adjustResize instead of adjustPan in manifest
  • Surround your XML layout with a ScrollView
  • Also specify android: minHeight for your EditText


It didn't work when I used a RelativeLayout as the main view for my ScrollView. So you are better off using LinearLayout or FrameLayout etc.

=)

+1


source


I had the same problem. I used android: windowSoftInputMode = "adjustNothing" in the manifest. Hope this works. As adjustResize and adjustPan didn't solve my problem.



0


source







All Articles