@@ -0,0 +1,1907 @@
+package es.craftsmanship.toledo.katangapp.adapters;%0A%0Aimport es.craftsmanship.toledo.katangapp.activities.R;%0Aimport es.craftsmanship.toledo.katangapp.models.BusStop;%0Aimport es.craftsmanship.toledo.katangapp.utils.KatangaFont;%0A%0Aimport android.content.Context;%0A%0Aimport android.graphics.Typeface;%0A%0Aimport android.support.v7.widget.RecyclerView;%0A%0Aimport android.view.LayoutInflater;%0Aimport android.view.View;%0Aimport android.view.ViewGroup;%0A%0Aimport android.widget.TextView;%0A%0Aimport java.util.List;%0A%0A%0A%0A/**%0A * @author Cristobal Hermida%0A */%0Apublic class LineBusStopAdapter  extends RecyclerView.Adapter%3CLineBusStopAdapter.LineStopsViewHolder%3E  %7B%0A%0A    private final List%3CBusStop%3E lineStops;%0A    private Context context;%0A    private TextView address;%0A%0A    public LineBusStopAdapter(List%3CBusStop%3E lineStops) %7B%0A        this.lineStops = lineStops;%0A    %7D%0A%0A    @Override%0A    public LineBusStopAdapter.LineStopsViewHolder onCreateViewHolder(ViewGroup parent, int viewType) %7B%0A        context = parent.getContext();%0A%0A        View v = LayoutInflater.from(context)%0A                .inflate(R.layout.bus_line_row, parent, false);%0A%0A        return new LineStopsViewHolder(v);%0A    %7D%0A%0A    @Override%0A    public void onBindViewHolder(LineStopsViewHolder holder, int position) %7B%0A        holder.bind(lineStops.get(position));%0A    %7D%0A%0A    @Override%0A    public int getItemCount() %7B%0A        return lineStops.size();%0A    %7D%0A%0A    public class LineStopsViewHolder extends RecyclerView.ViewHolder %7B%0A%0A        public LineStopsViewHolder(View itemView) %7B%0A            super(itemView);%0A%0A            address = (TextView) itemView.findViewById(R.id.bus_line_stop_name);%0A            Typeface tf = KatangaFont.getFont(context.getAssets(), KatangaFont.QUICKSAND_REGULAR);%0A            address.setTypeface(tf);%0A%0A        %7D%0A        public void bind(BusStop busLineStop) %7B%0A                address.setText(busLineStop.getAddress());%0A            %7D%0A        %7D%0A%0A%7D%0A%0A%0A

add Adapter for showing list stops