package com.orhanobut.dialogplus; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import androidx.annotation.NonNull; import androidx.annotation.Nullable; import androidx.annotation.ColorRes; public interface Holder { /** * Adds the given view as header to the top of holder */ void addHeader(@NonNull View view); /** * Adds the given view as header to the top of holder * * @param view will be shown as header. * @param fixed fixed on top if it is true, scrollable otherwise */ void addHeader(@NonNull View view, boolean fixed); /** * Adds the given view as footer to the bottom of holder */ void addFooter(@NonNull View view); /** * Adds the given view as footer to the bottom of holder * * @param view will be shown as footer. * @param fixed fixed at bottom if it is true, scrollable otherwise */ void addFooter(@NonNull View view, boolean fixed); /** * Sets the given color resource as background for the content */ void setBackgroundResource(@ColorRes int colorResource); @NonNull View getView(@NonNull LayoutInflater inflater, ViewGroup parent); void setOnKeyListener(View.OnKeyListener keyListener); @NonNull View getInflatedView(); @Nullable View getHeader(); @Nullable View getFooter(); }