Created
September 12, 2022 22:53
-
-
Save ivangarzab/afedf55023510d5c7a6410d30043d26c to your computer and use it in GitHub Desktop.
Get a theme attribute programmatically
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
val typedValue = TypedValue() | |
theme.resolveAttribute(android.R.attr.textColor, typedValue, true) | |
val color = typedValue.data() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment