Unfortunately, I didn't have this idea. Now, I created a new class called RoutesArrayAdapter that extends ArrayAdapter<Route>. To do that, I used an adapted ready model.