ListView does not update until keyboard is hidden

后端 未结 3 967
名媛妹妹
名媛妹妹 2021-02-20 10:09

I have a DialogFragment and in it\'s layout I have a EditText and a ListView. The Listview basically shows the list of contacts (Initially

3条回答
  •  盖世英雄少女心
    2021-02-20 10:16

    You are trying to change visible list with changing emailContacts, but adapter still contains old list data.

    Solution: after each new text in EditText create new adapter (is a VERY bad way), or create method in EmailContactAdapter to replace items - in your case contacts field.

提交回复
热议问题