简体   繁体   English

更改Google地方选取器应用栏文本颜色

[英]Change Google Place Picker Appbar Text Color

I would really like to know if I am able to change the text color of the Appbar text in the PlacePicker API for Android. 我真的想知道我是否能够在PlacePicker API for Android中更改Appbar文本的文本颜色。 It should inherit the styling from my application, but it does not do that. 它应该从我的应用程序继承样式,但它不会那样做。

my styles.xml is as follows: 我的styles.xml如下:

<style name="MaterialParent" parent="Theme.AppCompat.Light.NoActionBar">
    <!-- ...and here we setting appcompat’s color theming attrs -->
    <item name="colorPrimary">@color/primary</item>
    <item name="colorPrimaryDark">@color/primary_dark</item>
    <item name="colorAccent">@color/accent</item>
    <item name="android:textColor">@android:color/white</item>
    <item name="android:textColorPrimary">@android:color/white</item>
    <item name="android:textColorSecondary">@color/secondary_text</item>
    <item name="icon">@color/icons</item>
    <item name="divider">@color/divider</item>
    <item name="colorControlHighlight">@color/accent_alpha26</item>

</style>

<style name="Material" parent="MaterialParent"/>

I've already tried changing android:textColorPrimary , android:textColorSecondary and textColor to white with no luck. 我已经尝试过将android:textColorPrimaryandroid:textColorSecondarytextColor改为白色而没有运气。

在此输入图像描述

请使用Theme.AppCompat.Light.NoActionBar Theme.AppCompat.Light.NoActionBar Theme.AppCompat.Light.DarkActionBar

只需使用您想要的颜色十六进制代码更改颜色文件的colorPrimary值,它就可以正常工作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM