@@ -0,0 +1,1643 @@
+package mindpop.learnpop;%0A%0Aimport android.support.v7.widget.CardView;%0Aimport android.support.v7.widget.RecyclerView;%0Aimport android.view.LayoutInflater;%0Aimport android.view.View;%0Aimport android.view.ViewGroup;%0Aimport android.widget.ImageView;%0Aimport android.widget.TextView;%0A%0Aimport org.w3c.dom.Text;%0A%0Aimport java.util.List;%0A%0A/**%0A * Created by montselozanod on 4/5/15.%0A */%0Apublic class ResourceAdapter extends RecyclerView.Adapter%3CRecyclerAdapter.ResourceViewHolder%3E %7B%0A%0A    List%3CResource%3E resources;%0A%0A    ResourceAdapter(List%3CResource%3E list)%7B%0A        this.resources = list;%0A    %7D%0A%0A    public int getItemCount() %7B%0A        return resources.size();%0A    %7D%0A%0A    @Override%0A    public ResourceViewHolder onCreateViewHolder(ViewGroup viewGroup, int i) %7B%0A        View v = LayoutInflater.from(viewGroup.getContext()).inflate(R.layout.card_view_announce, viewGroup, false);%0A        ResourceViewHolder pvh = new ResourceViewHolder(v);%0A        return pvh;%0A    %7D%0A%0A    @Override%0A    public void onBindViewHolder(ResourceViewHolder aViewHolder, int i) %7B%0A        aViewHolder.title.setText(resources.get(i).getTitle());%0A        aViewHolder.subject.setText(resources.get(i).getSubject());%0A        aViewHolder.icon.setImageResource(R.drawable.ic_like);%0A    %7D%0A%0A    @Override%0A    public void onAttachedToRecyclerView(RecyclerView recyclerView) %7B%0A        super.onAttachedToRecyclerView(recyclerView);%0A    %7D%0A%0A    public static class ResourceViewHolder extends RecyclerView.ViewHolder%7B%0A        CardView res;%0A        TextView title;%0A        TextView subject;%0A        ImageView icon;%0A%0A        ResourceViewHolder(View v)%7B%0A            super(itemView);%0A%0A        %7D%0A%0A    %7D%0A%7D%0A

add recycler adapter for resources