Android Question get text color from xml file

ArminKH

Well-Known Member
hi
i have a xml file which is named theme.xml
i have following code into this file
B4X:
<?xml version="1.0" encoding="utf-8"?>
<resources>
    <style name="MyTheme" parent="Theme.AppCompat.Light.NoActionBar">
        <item name="colorPrimary">#3F51B5</item>
        <item name="colorPrimaryDark">#303F9F</item>
        <item name="colorAccent">#ffc300</item>
        <item name="android:windowNoTitle">true</item>
        <item name="windowActionBar">false</item>
    </style>
</resources>
now in b4a side
how is possible to get for example the value of "colorPrimary" by using XmlLayoutBuilder lib?
tnx
 
Top