hi i have a problem friends i am passing the text and the images from the Json using volley library and recycler view with horizontal orientation everything working fine but i am getting more gap in between the images because of that navigation drawer also effecting this the image of the home screen
This adapter featured products
public class FeaturedAdapter extends RecyclerView.Adapter<ViewHolder> {
ImageLoader imageLoader = AppController.getInstance().getImageLoader();
private Context context;
private List<Data> fpdata;
public FeaturedAdapter(Context context, List<Data> fpdata) {
this.context = context;
this.fpdata = fpdata;
}
@Override
public ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
View fpds = LayoutInflater.from(parent.getContext()).inflate(R.layout.singlefeatured, parent,false);
ViewHolder viewHolder = new ViewHolder(fpds);
return viewHolder;
}
@Override
public void onBindViewHolder(ViewHolder holder, int position) {
Data feature=fpdata.get(position);
holder.netfp.setImageUrl(feature.getFpimage(),imageLoader);
holder.title.setText(feature.getTitle());
holder.price.setText(feature.getPrice());
}
@Override
public int getItemCount() {
return fpdata.size();
}
}