You will need to create an Android library project if you want to use resource files and then use #AdditionalRes to reference the library resource files.
If you can implement it without resource files then it will be simpler to use.
BTW warwounds suggestion works. Add this code to your R.java file;
B4X:
private static final int[] getResourceDeclareStyleableIntArray(String name)
{
try
{
//use reflection to access the resource class
Field[] fields2 = Class.forName(BA.packageName + ".R$styleable" ).getFields();
//browse all fields
for ( Field f : fields2 )
{
//pick matching field
if ( f.getName().equals( name ) )
{
//return as int array
int[] ret = (int[])f.get( null );
return ret;
}
}
}
catch ( Throwable t )
{
}
return null;
}
And you can then access the StyleableIntArray this way;
public static int[] MDRootLayout = getResourceDeclareStyleableIntArray("MDRootLayout");