package es.craftsmanship.toledo.katangapp.activities;

import es.craftsmanship.toledo.katangapp.models.BusStopResult;
import es.craftsmanship.toledo.katangapp.models.QueryResult;

import android.content.Intent;

import android.os.Bundle;

import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;

import java.util.List;

/**
 * @author Cristóbal Hermida
 */
public class ShowStopsActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        setContentView(R.layout.activity_show_stops);

        Intent intent = getIntent();

        QueryResult queryResult = (QueryResult) intent.getSerializableExtra("queryResult");

        List<BusStopResult> stops = queryResult.getResults();

        RecyclerView recyclerView = (RecyclerView) findViewById(R.id.stops);

        recyclerView.setHasFixedSize(true);

        recyclerView.setLayoutManager(new LinearLayoutManager(this));

        recyclerView.setAdapter(new StopsAdapter(stops));
    }

}
@@ -52,133 +52,8 @@
 s;%0A%0A
-import es.craftsmanship.toledo.katangapp.models.BusStopResult;%0Aimport es.craftsmanship.toledo.katangapp.models.QueryResult;%0A%0A
 impo
@@ -79,17 +79,16 @@
 Intent;%0A
-%0A
 import a
@@ -105,17 +105,16 @@
 Bundle;%0A
-%0A
 import a
@@ -256,16 +256,16 @@
 rView;%0A%0A
-
 import j
@@ -280,16 +280,141 @@
 .List;%0A%0A
+import es.craftsmanship.toledo.katangapp.models.BusStopResult;%0Aimport es.craftsmanship.toledo.katangapp.models.QueryResult;%0A%0A
 /**%0A * @
@@ -949,53 +949,8 @@
 );%0A%0A
-        recyclerView.setHasFixedSize(true);%0A%0A
     

delete fixed size atribute to recyclerview