Android PlaceAutocomplete搜索结果混合

Android PlaceAutocomplete搜索结果混合,android,autocomplete,google-play-services,Android,Autocomplete,Google Play Services,我遵循了使用“使用意图启动自动完成活动”实现自动完成的步骤 但有时结果显示,所有这些都是混淆和重叠的 以下是我正在使用的代码: try { // The autocomplete activity requires Google Play Services to be available. The intent // builder checks this and throws an exception if it is not the case. Autocomplet

我遵循了使用“使用意图启动自动完成活动”实现自动完成的步骤

但有时结果显示,所有这些都是混淆和重叠的

以下是我正在使用的代码:

try {
    // The autocomplete activity requires Google Play Services to be available. The intent
    // builder checks this and throws an exception if it is not the case.
    AutocompleteFilter typeFilter = new AutocompleteFilter.Builder()
            .setTypeFilter(AutocompleteFilter.TYPE_FILTER_CITIES)
            .build();
    Intent intent = new PlaceAutocomplete.IntentBuilder(PlaceAutocomplete.MODE_FULLSCREEN).setFilter(typeFilter)
            .build(MainActivity.this);
    startActivityForResult(intent, 111);
} catch (GooglePlayServicesRepairableException e) {
    // Indicates that Google Play Services is either not installed or not up to date. Prompt
    // the user to correct the issue.
    GoogleApiAvailability.getInstance().getErrorDialog(MainActivity.this, e.getConnectionStatusCode(),
            0 /* requestCode */).show();
} catch (GooglePlayServicesNotAvailableException e) {
    // Indicates that Google Play Services is not available and the problem is not easily
    // resolvable.
    String message = "Google Play Services is not available: " +
            GoogleApiAvailability.getInstance().getErrorString(e.errorCode);

    Log.e("", message);
    Toast.makeText(MainActivity.this, message, Toast.LENGTH_SHORT).show();
}


这是Google Play service SDK问题还是代码问题?

发布您的设计代码和此活动的清单代码。我认为设计不需要,因为它的Google places库自己的布局和Google提供的本机代码检查类似问题