I extended AlertDialog with my class, which displays my XML layout. I do not use the standard AlertDialog buttons, I have my own OK and Cancel buttons. The listener calls dismiss() for them. The problem is that I edited the contents of EditText, and then clicked OK (this is an Android 3.1 tablet, the keyboard does not interfere with my interaction with the dialogue), the dialogue will disappear, but the keyboard will not, it will remain in the background. What could be the cause and how to fix it?
Here is the constructor of my dialog to give an idea:
public NetworkCameraParametersDialog(Context context ) { super(context); View content = ((LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE)).inflate(R.layout.dialog, null); setView(content); Button btnOk = (Button) content.findViewById(R.id.btn_Ok); btnOk.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) {
source share