PlacePicker doesn't pick up material theme

后端 未结 3 1382
既然无缘
既然无缘 2021-01-17 21:30

I am using a PlacePicker library from Google Play Services which starts up a new activity. The new activity/picker has a toolbar (actionbar) which is not styled by default.<

3条回答
  •  攒了一身酷
    2021-01-17 22:18

    This is an acknowledged issue by the development team.

    There is currently a known issue with setting custom theme colors on the PlacePicker. For now you can work around this by defining two colors with the names "primary" and "primary_dark" - these will be applied to the PlacePicker.

    Unfortunately setting the primary/primaryDark property on a theme will not affect the PlacePicker styling at the moment.

    EDIT: Seems to be fixed now.

    This should be fixed in Google Play Services 10.0. Place Picker and Autocomplete Widget will use the colorPrimary and colorPrimaryDark colors from your app.

提交回复
热议问题