autocompletetextview not working inside popup window

后端 未结 2 1752
隐瞒了意图╮
隐瞒了意图╮ 2021-01-27 13:38

I am new to android and i am trying to integrate auto complete text view inside popup window. But the auto complete action not working inside the popup window. If i

2条回答
  •  无人共我
    2021-01-27 14:11

    I faced the same problem but I end up using parent activity to display item in popup window.You can use dialog to solve this problem, but if you are insist on popupwindow. Then, this is how it gonna works.
    1.create autocompletetextview in your parent activity,place it anywhere where you want to display list and make visibility to gone.
    2.Now In popupwindow, when you call textwatcher or textchange, set that data adapter to parent autocomplete text view instead of popupwindow autocomplete textview and set visibility to visible.
    3.It will display list of item as you type any character.

    Hope helped!

提交回复
热议问题