junixapp/XPopup

IllegalArgumentException: atView() or watchView() must be called for AttachPopupView before show()!

Closed this issue · 1 comments

自定义attach弹窗:
class EffectSlctPop(ctx: Context) : AttachPopupView(ctx) {

override fun getImplLayoutId(): Int {
    return R.layout.dlg_effectlist
}

}

调用:
XPopup.Builder(view.context)
.asCustom(EffectSlctPop(view.context))
.show()

改成这样就好了
XPopup.Builder(v.context)
.atView(v)
.asCustom(EffectSlctPop(v.context))
.show()