I have a layout that contains a ListView and an EditText under the ListView, which is used to search as a list. The problem is that when I close the soft keyboard after searching, it gives a jerk and shows a space when closing the soft keyboard. I tried adjustPan, but it moves the whole layout.
public static void hideKeyboard(Context context,View v) { InputMethodManager imm = (InputMethodManager)context.getSystemService( Context.INPUT_METHOD_SERVICE); imm.hideSoftInputFromWindow(v.getWindowToken(), 0); }
Hope this helps!
Source: https://habr.com/ru/post/1539909/More articles:Как скопировать каталог из одной рабочей области Jenkins в другую? - jenkinsОшибка агрегации SQL - sqlhttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1539906/how-to-see-the-repository-implementation-generated-by-spring-data-mongodb&usg=ALkJrhiDZ6R8h9Kxddz02AQrSPj3jNvtiQAvoiding a shell parameter such as '-n' - shellSet the jwplayer 6.7 control panel to the bottom: a problem with the width of the player control - jwplayerWhy exactly an aka needs immutable messages - javaHow to find out who was the author of the deleted line? - gitChanging animation height on Bootstrap 3 Carousel - javascriptНет предустановки, найденной на канале 9 при воспроизведении миди с вновь созданным звуковым экраном - audioUpload blob data to php server, extract data from url - jqueryAll Articles