I'm asking about Android Toolbar them.

Asked 2 years ago, Updated 2 years ago, 119 views

Hello.

On Android, parent="Theme.AppCompat.Light.NoActionBar" I'm decorating the theme after inheritance.

For Toolbar Action Manuals

actionMenuTextColor android:actionMenuTextColor

There are these two, so I wonder what the difference is.

android theme

2022-09-21 22:09

1 Answers

Like android:actionMenuTextColor, the one with the android prefix is for the attribute (android.attr.R) defined on the Android platform, and the one without the android prefix is for the Support Library.

So it's for supporting different versions of Android. You can think of it as an old version of Android without Android prefixes. In older versions, the style is read from the Support Library, so the actionMenuTextColor must also be overridden, but the style is applied to all OS versions.


2022-09-21 22:09

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.