Skip to content

Instantly share code, notes, and snippets.

Created September 27, 2017 20:47
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/bcf027945f08f40601090c55d6048e21 to your computer and use it in GitHub Desktop.
Save anonymous/bcf027945f08f40601090c55d6048e21 to your computer and use it in GitHub Desktop.
import android.support.v7.widget.RecyclerView;
import android.view.View;
import android.view.ViewGroup;
/**
* Created on 27/Sep.
*/
public class EmptyAdapter extends RecyclerView.Adapter<EmptyAdapter.EmptyHolder> {
@Override
public EmptyHolder onCreateViewHolder(ViewGroup parent, int viewType) {
return null;
}
@Override
public void onBindViewHolder(EmptyHolder holder, int position) {
}
@Override
public int getItemCount() {
return 0;
}
class EmptyHolder extends RecyclerView.ViewHolder {
public EmptyHolder(View itemView) {
super(itemView);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment