Android Question Add layout to library

devmobile

Active Member
Licensed User
I make library that in this library i use layout
can i add this layout to library and then Compile to Library?
 

azzam223

Active Member
Licensed User
Longtime User
you can only reference to the activity in the library and layout name then use loadlayout sub to load it you can't you layout inside library
 
Upvote 0

azzam223

Active Member
Licensed User
Longtime User
How Use Want To Use Layout in library You Can Create xml Layout file then add it through #Additionalres then Call it with xmllayoutbuilder library I don't know it is possible To add layout as an additional Resource or not

If you want To load it through library you must include activity module because you can't load it through the class

https://www.b4x.com/android/forum/threads/xmllayoutbuilder-load-xml-layouts.33762/
 
Last edited:
Upvote 0

devmobile

Active Member
Licensed User
Upvote 0
Top