如何更改PlaceAutocompleteFragment的提示文本颜色?

时间:2017-12-02 05:28:37

标签: android placeautocompletefragment

我没有看到任何可用于更改hintPlaceAutocompleteFragment的文字颜色的方法。 enter image description here

1 个答案:

答案 0 :(得分:1)

EditText etPlace = (EditText)autocompleteFragment.getView().findViewById(R.id.place_autocomplete_search_input);
        etPlace.setHint("Type your address");
        etPlace.setHintTextColor(R.color.primary_text_material_dark);