Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要从 MyEpoxyModel 回电。我需要从模型中调用控制器中的回调我该怎么做?(带环氧树脂)
您可以将适配器中的任何内容传递给您的 EpoxyModel。例如,如果要传递回调侦听器,请使用
@CallbackProp fun setClickListener(onClickListener: OnClickListener?) { setOnClickListener(onClickListener) }