草庐IT

mAddressEditText

全部标签

Android Place 自动完成 fragment : Unable to set text

Google最近更新了他们的PlacesSDKforandroid,所以现在我也在更新我的代码。我正在尝试使用AutocompleteSupportFragment来允许用户设置他们的地址。这是我的代码:mAddressEditText=(AutocompleteSupportFragment)getSupportFragmentManager().findFragmentById(R.id.address);mAddressEditText.setPlaceFields(Arrays.asList(Place.Field.ADDRESS,Place.Field.LAT_LNG));m