This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #if (${PACKAGE_NAME} && ${PACKAGE_NAME} != "")package ${PACKAGE_NAME};#end | |
| #parse("File Header.java") | |
| public class ${NAME} extends | |
| RecyclerView.Adapter<${NAME}.ViewHolder> { | |
| private static final String TAG = ${NAME}.class.getSimpleName(); | |
| private Context context; | |
| private List<${LIST_MODEL}> list; | |
| private OnItemClickListener onItemClickListener; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.despotoski.nikola.diffutilexample; | |
| import android.os.Bundle; | |
| import android.support.annotation.Nullable; | |
| import android.support.v7.util.DiffUtil; | |
| import java.util.List; | |
| import static com.despotoski.nikola.diffutilexample.Product.KEY_DISCOUNT; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import android.support.annotation.LayoutRes; | |
| import android.support.v7.widget.RecyclerView; | |
| import android.view.LayoutInflater; | |
| import android.view.View; | |
| import android.view.ViewGroup; | |
| import java.util.List; | |
| public class RecyclerAdapter<T, VH extends RecyclerViewHolder<T>> extends RecyclerView.Adapter<VH> { | |
| private final List<T> adapterList; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import android.content.Context; | |
| import android.support.annotation.NonNull; | |
| import android.widget.ImageView; | |
| import com.bumptech.glide.Glide; | |
| import com.bumptech.glide.Priority; | |
| import com.bumptech.glide.load.data.DataFetcher; | |
| import com.bumptech.glide.load.model.stream.StreamModelLoader; |