Say I have below style.xml file in android studio:
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="Theme.MyTheme" parent="Theme.AppCompat">
<item name="android:colorForeground">@color/purple_200</item>
</style>
</resources>
How can I write code in java to read out the hex value of "android:colorForeground"?