app crashes when spinner is pressed inside popupwindow which is located in fragment

时光怂恿深爱的人放手 提交于 2019-12-02 10:39:24

try this in OnResponse else condition

 layout.post(new Runnable() {
        @Override
        public void run() {
            createPopUpWindow(layout);
        }
    });

instead of createPopUpWindow(layout);

Similar issue was reported on google https://code.google.com/p/android/issues/detail?id=202246

But after release of Android Support Library, revision 23.2.1 (March 2016) This issue has been resolved.

Fixed a compatibility crash with AppCompatSpinner on API level 21 and below

update Support Library to Android Support Library to 23.2.1

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!