/** * adds a new event hook for an item * NOTE: this has to be called before adding the first items, as this won't be called anymore after the ViewHolders were created * * @param eventHook the event hook to be added for an item * @return this * @deprecated please use `withEventHook` */ @Deprecated public FastAdapter<Item> withItemEvent(EventHook<Item> eventHook) { return withEventHook(eventHook); }
adapter.withEventHook(new RequestSettingListStickTitle.AddEvent()).withEventHook(new RequestSettingListKVItem.RemoveEvent()).withEventHook(new RequestSettingListKVItem.textChangeEvent()); adapter.withOnClickListener(new FastAdapter