Home Using AutoCompleteTextView with RecyclerView
Reply: 0

Using AutoCompleteTextView with RecyclerView

Gunaseelan
1#
Gunaseelan Published in 2018-02-14 10:09:43Z

When I try to use AutoCompleteTextView with RecyclerView I getting this exception while testing.

Note: Popup shows in AutoCompleteTextView, but when I move continuously to the upcoming textview's and try to add text rarely this exception occurs.

FATAL EXCEPTION: main
   Process: com.app.test, PID: 10445
   java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.PopupWindow$PopupDecorView.setFitsSystemWindows(boolean)' on a null object reference
   at android.widget.PopupWindow.invokePopup(PopupWindow.java:1254)
   at android.widget.PopupWindow.showAsDropDown(PopupWindow.java:1110)
   at android.widget.ListPopupWindow.show(ListPopupWindow.java:658)
   at android.widget.AutoCompleteTextView.showDropDown(AutoCompleteTextView.java:1106)
   at android.widget.AutoCompleteTextView.updateDropDownForFilter(AutoCompleteTextView.java:975)
   at android.widget.AutoCompleteTextView.onFilterComplete(AutoCompleteTextView.java:957)
   at android.widget.Filter$ResultsHandler.handleMessage(Filter.java:285)
   at android.os.Handler.dispatchMessage(Handler.java:102)
   at android.os.Looper.loop(Looper.java:154)
   at android.app.ActivityThread.main(ActivityThread.java:5529)
   at java.lang.reflect.Method.invoke(Native Method)
   at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:739)
   at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:629)

Don't know how to resolve this issue. Any solutions/suggestions will be highly appreciated.

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.296528 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO