Android-is Library class Libraries reference places to note

Source: Internet
Author: User

In Android development, we may have an Android project-properties-android the following "is library", indicating that the project as a class library for other Android projects to reference.

For example, suppose you have a class library project A, you need to refer to A's other Android project B. So in the process of use, you need to pay attention to two points:

①, if you need to use the activity in A in B (which may be the case), you must declare the activity in a in the B's manifest file;

②, if A and B have a layout file of the same name, then B ignores the resource corresponding to the layout file in class library A, so the two cannot have duplicate names.


Note that the above two points can solve most of the problems that arise when referencing a class library.


Android-is Library class Libraries reference places to note

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.