I would suggest a CustomView.
This one you need to add it to each activity, but only one code module.
And you could also generate a B4X Library with it.
In this case you just add the libary to your project and you have direct access to the CustomView.