Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- val array = theme.obtainStyledAttributes(intArrayOf(android.R.attr.colorAccent))
- val backgroundcolor = array.getColor(0, 0xFF00FF)
- println(String.format("#%06X", (0xFFFFFF and backgroundcolor)))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement