且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

android-如何在Android中自动完成片段的地方更改文本大小?

更新时间:2022-12-30 08:03:26

使用片段实例,您可以在搜索框EditText中更改字体大小和所需的内容.这就是您需要做的

Using fragment instance you can change the font size and whatever you want with the Search box EditText.. this is how you need to do

// placeAutocompleteFragment - is my PlaceAutocompleteFragment instance
((EditText)placeAutocompleteFragment.getView().findViewById(R.id.place_autocomplete_search_input)).setTextSize(10.0f);

更新时间:20/05/26

看起来像最新的SDK视图ID更改为R.id.places_autocomplete_search_input

Looks like in latest SDK view id is changed to R.id.places_autocomplete_search_input