getMap和AutoComplete setCountry android

时间:2017-05-22 10:46:46

标签: android google-places-api supportmapfragment gmsplacepicker

getMap需要旧的gms playService 但 setCountry("")需要新的gms playservice版本 如何在同一个应用程序中使用它们?

  supportMapFragment = (SupportMapFragment) getSupportFragmentManager()
                .findFragmentById(R.id.map);

        googleMap = supportMapFragment.getMap();

//===================================================================

    AutocompleteFilter typeFilter = new AutocompleteFilter.Builder().setCountry("EG")
            .build();

    autocompleteFragment.setFilter(typeFilter);

0 个答案:

没有答案