I have a class that extends to Dialog. In this dialog, I have EditText and ListView. I manage to bring softkeyboard when this dialog box is shown. But my problem is, can we make the dialog not rising when the on-screen keyboard is displayed? I tried changing the softInputMode in the layout parameter to adjust the size, but it does not work. My dialog using the x and y positions, when the on-screen bar and up dialog are displayed, my dialog is not in the right position.
Try to do this:
dialog.getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_ADJUST_PAN);
If you want to resize it and not just move it, use:
dialog.getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_ADJUST_RESIZE);
It will also allow you to scroll in the dialog box.
Source: https://habr.com/ru/post/1388013/More articles:how to break a long word in html? - javascripthttps://translate.googleusercontent.com/translate_c?depth=1&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1388009/how-to-create-popup-window-when-pressing-numeric-keys-in-sun-java-wireless-toolkit-252&usg=ALkJrhi0Yo5BvlIHHi1Zx9Jv_oFGySIcdgThe difference as a result of my original query and JPQL (JPA) - javaFOSUser check_path with localization - symfonyHow to create a web crawler using Node.js? - javascriptSelect an arbitrary partitioned record with the specified number of records in each section - sqlPlay alpha video in Android? - androidC: Bitwise NOT on a specific bit - cEntity Framework trace provider wrapper without configuration files - c #How does C ++ handle flushing pointers passed as arguments? - c ++All Articles