I thought I read somewhere that you can set up your custom view classes in a way so that you don’t need to reference them in your XML by the fully qualified class name. However, I can’t find anything about this anymore.
Does anyone know how this can be done?
Create your own
LayoutInflaterand give that to System’sLayoutInflatorviasetFactory()orsetFactory2(). YourLayoutInflator‘s will be called first, and it’s here you can just inflate your ownViewclasses just by their name (as yourLayoutInflatorwill use the package name you tell it to).