Created
September 27, 2017 20:47
-
-
Save anonymous/bcf027945f08f40601090c55d6048e21 to your computer and use it in GitHub Desktop.
This file contains 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.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