1

I have a dialog that contains a listview, this listview contains edittext boxes.

The problem is that when the edittext box is selected the softkeyboard will cover it up.

So far i have tried with limited success calling this in the dialogs initialisation:

this.getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_ADJUST_RESIZE);

What happens with this is whenever I select an edittext the dialog resizes exactly how I want but it also unfocuses the edittext at the same time. A similar outcome occurs when using SOFT_INPUT_ADJUST_PAN resetting the pan when the edittext is reselected.

4

1 回答 1

2

您可以尝试将其添加到清单中,

android:windowSoftInputMode="adjustPan" >
于 2012-12-20T11:13:11.020 回答