Java Question How are the xml resource files compiled?

corwin42

Expert
Licensed User
Longtime User
Hello Erel,

how are the xml resource files under Objects/res/xxx compiled? I have some problems with the ActionBar I want to write a wrapper for. The original resources from the ActionBar use styles and from some xml layouts the style attributes are accessed with
B4X:
style="?attr/actionBarProgressBarStyle"
etc.

It seems that this does not work correctly because at runtime I get an error that some mandatory attributes, which are defined in the style, are not available.

Is there any difference in generating the compiled xml files from within B4A and Eclipse?
 

corwin42

Expert
Licensed User
Longtime User
Forget it.

I have to set the correct theme in my AndroidManifest.xml.

First ActionBar with three lines of code in B4A works now. :sign0060:

But I think about to remove the whole theme stuff.
 
Last edited:
Top