We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
查了下历史issue, 由于要使用createPopupById,暂不支持databinding。 但其实目前的项目已经可以通过一些其他方法来支持databinding. 使用DataBindingUtil.bind(getContentView())就可以使用databinding了。
public MyPop(Context context, Goods goods) { super(context); PopMyBinding binding = DataBindingUtil.bind(getContentView()); ... } @Override public View onCreateContentView() { return createPopupById(R.layout.pop_my); }
The text was updated successfully, but these errors were encountered:
ya,其实很早之前就加了 创建view之后的回调方法了: onViewCreated()
onViewCreated()
demo中我的butterknife也是在那绑定的,所以databinding也可以
相关issue:
#232
相关文档:
https://www.yuque.com/razerdp/basepopup/yvlq1s
Sorry, something went wrong.
No branches or pull requests
查了下历史issue, 由于要使用createPopupById,暂不支持databinding。
但其实目前的项目已经可以通过一些其他方法来支持databinding.
使用DataBindingUtil.bind(getContentView())就可以使用databinding了。
The text was updated successfully, but these errors were encountered: