Error 1:
1.onScrollChanged(PopupWindow.java:127607145313351991991504385507849607
This error often occurs in Gingerbread or earlier versions, less than 3.0. Is a system bug
Solution:
Add the following method after new PopupWindow for check. To be compatible with versions earlier than 3.0, this operation is necessary.
fixPopupWindow( (Build.VERSION.SDK_INT < Field fAnchor = PopupWindow."mAnchor"= PopupWindow."mOnScrollChangedListener" ViewTreeObserver.OnScrollChangedListener originalListener == <View> mAnchor = (WeakReference<View> (mAnchor == || mAnchor.get() ==
Refer:
Https://github.com/JakeWharton/ActionBarSherlock/issues/752
Https://groups.google.com/forum? Fromgroups = #! Msg/osmeditor4android/RsHYoY6XqlU/-WGSKWm5OMAJ
Error 2:
1426262725921881991303687507867625
Solution: Do not call setFocusable (true) when creating a PopupWindow, call setFocusable (true) after showAtLocation, and call setFocusable (false) When dismiss occurs)
Refer:
Http://stackoverflow.com/questions/7768728/popupwindow-crash-on-dispatch-event
Http://www.eoeandroid.com/thread-109193-1-1.html