Java – change the text color of Google place picker AppBar
•
Java
I really want to know if I can change the text color of AppBar text in Android's placepicker API It should inherit the style of my application, but it won't
My styles The XML is as follows:
<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 tried to change Android: textcolorprimary, Android: textcolorsecondary and textcolor to white. I'm out of luck
Solution
Please use theme AppCompat. Light. Theme designed by noactionbar AppCompat. Light. DarkActionBar
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
二维码