public AutocompleteSuggestionUpdater(AutoCompleteTextView view, ArrayAdapterNoFilter adapter, MapboxMap map, MapBoxInterface mbi)
 {
     this.view    = view;
     this.adapter = adapter;
     this.map     = map;
     this.mbi     = mbi;
     updateAdapter("Central Park");
     adapter.Clear();
 }
Ejemplo n.º 2
0
 //Makes the route button opaque if both addresses are valid
 public static async Task makeRouteButtonOpaqueIfBothAddressesAreValid(String originAddress, String destinationAddress, Button routeButton, MapBoxInterface mbi)
 {
     if (await mbi.AddressIsValid(originAddress) && await mbi.AddressIsValid(destinationAddress))
     {
         routeButton.Alpha     = 1;
         routeButton.Clickable = true;
     }
     else
     {
         routeButton.Alpha     = .5F;
         routeButton.Clickable = false;
     }
 }