@@ -0,0 +1,1839 @@
+package com.jamesdube.laravelnewsapp.adapters;%0A%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 com.android.volley.toolbox.ImageLoader;%0Aimport com.android.volley.toolbox.NetworkImageView;%0Aimport com.bumptech.glide.Glide;%0Aimport com.bumptech.glide.load.engine.DiskCacheStrategy;%0Aimport com.jamesdube.laravelnewsapp.App;%0Aimport com.jamesdube.laravelnewsapp.R;%0Aimport com.jamesdube.laravelnewsapp.models.Post;%0A%0Aimport java.util.List;%0A%0Apublic class PostAdapter extends RecyclerView.Adapter%3CPostAdapter.PostViewHolder%3E %7B%0A    List%3CPost%3E posts;%0A    private LayoutInflater inflator;%0A    public PostAdapter(List%3CPost%3E posts) %7B%0A        this.posts = posts;%0A        inflator = LayoutInflater.from(App.getAppContext());%0A    %7D%0A%0A    @Override%0A    public PostViewHolder onCreateViewHolder(ViewGroup parent, int viewType) %7B%0A        View view = inflator.inflate(R.layout.template_posts,parent,false);%0A        return new PostViewHolder(view);%0A    %7D%0A%0A    @Override%0A    public void onBindViewHolder(PostViewHolder holder, int position) %7B%0A        holder.title.setText(posts.get(position).getTitle());%0A        holder.subTitle.setText(posts.get(position).getSubTitle());%0A        //holder.coverImage.setImageUrl(posts.get(position).getCoverImage(),new ImageLoader());%0A        Glide.with(App.getAppContext()).load(posts.get(position).getCoverImage())%0A                .into(holder.coverImage);%0A%0A    %7D%0A%0A    @Override%0A    public int getItemCount() %7B%0A        return 0;%0A    %7D%0A%0A     class PostViewHolder extends RecyclerView.ViewHolder%7B%0A        TextView title;%0A        TextView subTitle;%0A        ImageView coverImage;%0A%0A        PostViewHolder(View itemView) %7B%0A            super(itemView);%0A        %7D%0A    %7D%0A%7D%0A

add Post adapter