3
私はAndroidアプリケーションを作成しています。私はPlaceAutocomplete.IntentBuilder
を使ってGoogleからアドレスを取得しています。AndroidのPlaceAutocomplete.IntentBuilderのヒントテキストを変更してください。
PlaceAutocompleteビューの検索ボックスのヒントテキストを変更したいと思います。
私はPlaceAutocomplete
ビューを開くために以下のコードを使用しています。
Intent intent = new PlaceAutocomplete.IntentBuilder(PlaceAutocomplete.MODE_OVERLAY).build(this);
startActivityForResult(intent, requestCode);
スクリーンショット:
[link](https://developers.google.com/android/reference/com/google/android/gms/location/places/ui/PlaceAutocompleteFragment#public-methods)をご確認ください。このリンクには、ヒントを変更するsetHint()があります。 –
@SurenderKumar、間接的にPlaceAutocompleteクラスを呼び出します –
解決方法を確認してください: [Google場所検索のヒントテキストを変更する方法](https://stackoverflow.com/questions/45366037/how-to-change-placeholder-オートインテリジェンスのアクティビティ:android-google-pla/47752403#47752403) – Maddy