Skip to content

Instantly share code, notes, and snippets.

@EugW
Created September 29, 2019 09:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save EugW/8385a174d0efac8ad8e6489d80ee92a9 to your computer and use it in GitHub Desktop.
Save EugW/8385a174d0efac8ad8e6489d80ee92a9 to your computer and use it in GitHub Desktop.
SystemColorAndroid
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