package it.integry.integrywmsnative.core.di.binders;

import androidx.databinding.BindingAdapter;
import androidx.databinding.ObservableArrayList;

public class RecyclerViewAdapterBinders {



//    @BindingAdapter("app:adapter")
//    public static void setItems(RecyclerView recyclerView, Class clazz) {
//        setItems(recyclerView, null, clazz);
//    }
//
//    @BindingAdapter("app:items")
//    public static <T> void setItems(RecyclerView recyclerView, ObservableArrayList<T> entries) {
//        setItems(recyclerView, entries, null);
//    }
//
//    @BindingAdapter({"app:items", "app:adapter"})
//    public static <T> void setItems(RecyclerView recyclerView,
//                                    ObservableArrayList<T> entries, Class clazz) {
//
////        recyclerView.removeAllViews();
////        if (entries != null) {
////            LayoutInflater inflater = (LayoutInflater)
////                    viewGroup.getContext()
////                            .getSystemService(Context.LAYOUT_INFLATER_SERVICE);
////            for (int i = 0; i < entries.size(); i++) {
////                T entry = entries.get(i);
////                ViewDataBinding bindings = DataBindingUtil
////                        .inflate(inflater, layoutId, viewGroup, true);
////                bindings.setVariable(BR.data, entry);
////            }
////        }
//    }


}
