Android Question get text color from xml file

Discussion in 'Android Questions' started by ArminKH, Aug 20, 2015.

  1. ArminKH

    ArminKH Well-Known Member

    hi
    i have a xml file which is named theme.xml
    i have following code into this file
    Code:
    <?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
     
  2. GGSoft

    GGSoft Member Licensed User

Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice