Android Question Custom View Class to Libray

Cableguy

Expert
Licensed User
Longtime User
Hi, I was thinking out loud about what would be the result of compiling two different classes into a (single?) Library file...

I am away from my PC at this moment, but iI would like to know what constraints should I expect in this scenario:

Main activity, used to call and initialise the CV classes for debug purpose and where the Library related parameters are declared, like Author, Version, etc. (I guess this would be common to both views as a single library)

CV1 and CV2 are to be compiled into the same library...

Them when using them, CV1 and CV2 will be two completely different objects within the lib, right?
I would check the library in the libs tab, but declare the CVs individually, right?
 

klaus

Expert
Licensed User
Longtime User
I would suggest a test program where you develop the CustomViews and compile them into the library.
The library name is the one you declared in Main.
The CustomViews names are the Class module names.

In the programs where you use the library, check the library in the Tab and Dim the CustomViews with their names.
 
Upvote 0

Cableguy

Expert
Licensed User
Longtime User
I will have a play with later in the day, I was just wondering if there would be some kind of namespace collision I should be aware...
 
Upvote 0
Top