Created
September 29, 2019 09:21
-
-
Save EugW/8385a174d0efac8ad8e6489d80ee92a9 to your computer and use it in GitHub Desktop.
SystemColorAndroid
This file contains 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 array = theme.obtainStyledAttributes(intArrayOf(android.R.attr.colorAccent)) | |
val backgroundcolor = array.getColor(0, 0xFF00FF) | |
println(String.format("#%06X", (0xFFFFFF and backgroundcolor))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment