Can android PopupWindow show another PopupWindow? How many PopupWindow can be opened in the same time? Only one?
The first PopupWindow is displayed normally. But on
Yes you can. but here after looking at the exception stack trace, it seems like you are giving the wrong context. try to Launch another dialog with the same context or the context of your activity if that is not a child view of any parent such as TabView.
After playing with it i've found that
window.showAtLocation(getWindow().getDecorView(), Gravity.CENTER, x, y);
works okay, but
window.showAsDropDown(getWindow().getDecorView(), Gravity.CENTER, x, y);
raises exception! If you use showAtLocation(view)
with any view different from getWindow().getDecorView()
you'll still have an exception.