How to change text size in places autocompletefragment in android?

前端 未结 6 1757
失恋的感觉
失恋的感觉 2020-12-10 12:11

I am using the PlaceAutocompleteFragment that is provided by google in a project that I am working on right now. But the problem is I need to display the place name that I\'

6条回答
  •  暖寄归人
    2020-12-10 12:38

    The autoCompleSupportFragment has an EditText Property. Which can be modified accordingly. The name of the editText is however not very clear. In my case, it was "a"

    autoCompleteFragment.a.gravity = Gravity.START

    so to modify the text size, i did:

    autoCompleteFragment.a.textSize = 14.0f
    

提交回复
热议问题