Android Question Custom View Class to Libray

Discussion in 'Android Questions' started by Cableguy, May 27, 2015.

  1. Cableguy

    Cableguy Expert Licensed 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?
     
  2. klaus

    klaus Expert Licensed 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.
     
    Cableguy likes this.
  3. Cableguy

    Cableguy Expert Licensed 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...
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice