package com.hss01248.dialog.view;

import android.content.Context;
import androidx.annotation.LayoutRes;
import android.view.View;

import com.hss01248.dialog.config.ConfigBean;


/**
 * Created by Administrator on 2016/4/15 0015.
 */
public abstract class SuperHolder {
    public View rootView;

    public SuperHolder(Context context){
        rootView = View.inflate(context,setLayoutRes(),null);
        findViews();

    }

    protected abstract void findViews();




    protected abstract  @LayoutRes int setLayoutRes();

    /**
     * 一般情况下，实现这个方法就足够了
     * @param context
     * @param bean
     */
    public  abstract void assingDatasAndEvents(Context context, ConfigBean bean);


}
