C chrjak Active Member Licensed User Longtime User Jan 21, 2017 #1 Hey As I am searching for hours already i now ask the community is there a way to get the color out of an color.xml file in res <?xml version="1.0" encoding="utf-8"?> <resources> <color name="backgroundColor">#FFC441C4</color> </resources> I now want to get the color in my code like: Dim C as int = @Color/backgroundColor Same with strings (e.g. @string/app_name) and so on Last edited: Jan 21, 2017
Hey As I am searching for hours already i now ask the community is there a way to get the color out of an color.xml file in res <?xml version="1.0" encoding="utf-8"?> <resources> <color name="backgroundColor">#FFC441C4</color> </resources> I now want to get the color in my code like: Dim C as int = @Color/backgroundColor Same with strings (e.g. @string/app_name) and so on
Erel B4X founder Staff member Licensed User Longtime User Jan 22, 2017 #2 You can use XmlLayoutBuilder library to get strings, views and drawables from resource files. Upvote 0