Implementing a custom view with designer support
There are two ways to implement a custom view. It can be implemented as a class (which can also be compiled to a library) or it can be implemented in Java. A tutorial about Java implementation will be available in the "libraries developers forum".
There is no difference between a B4A class or a B4A class compiled into a library. You can take the class example and compile it into a library.