/** * It must be called after {@link #attachTarget(View)} if necessary. * <br>And you should call it before {@link #show(Activity)}. * * @param customView custom view * @param callback initialize call back. * @param <V> custom view type */ public <V extends View> GuidePopupView addCustomView(@NonNull V customView, @NonNull GuideLayout.OnAddCustomViewCallback<V> callback) { if (target == null) throw new IllegalStateException("You need attach target first."); guideLayout.addCustomView(customView, callback); return this; }
/** * It must be called after {@link #attachTarget(View)} if necessary. * <br>And you should call it before {@link #show()}. * * @param customView custom view * @param callback initialize call back. * @param <V> custom view type */ public <V extends View> GuideDialog addCustomView(@NonNull V customView, @NonNull GuideLayout.OnAddCustomViewCallback<V> callback) { if (target == null) throw new IllegalStateException("You need attach target first."); guideLayout.addCustomView(customView, callback); return this; }
/** * It must be called after {@link #attachTarget(View)} if necessary. * <br>And you should call it before {@link #show()}. * * @param customView custom view * @param callback initialize call back. * @param <V> custom view type */ public <V extends View> GuidePopupWindow addCustomView(@NonNull V customView, @NonNull GuideLayout.OnAddCustomViewCallback<V> callback) { if (target == null) throw new IllegalStateException("You need attach target first."); guideLayout.addCustomView(customView, callback); return this; }