简体   繁体   中英

Android: How to reference library drawable in app manifest

I have a free android app that I want to now distribute as free (with ads) and paid (without ads), so the only difference would be in a few of the layout files, where I just remove the ads in the paid version.

I tried moving all of my code from my existing free app to a new project which I set up as a library project, and I'm referencing the library project from the app project. In the manifest file.

What I want to do is completely contain the free app within this library project, and create two new app projects that reference the library, and change the layout file for the paid app, removing the ads.

I'm working on the paid app version and can't figure out how to reference the drawable for the app icon in the manifest file.

Am I going about this all wrong? Help is much appreciated.

我的知识来自于阅读类似的对话而不是经验,但是如果AFAIK中的任何资源都包含在应用程序项目的库中,则无法引用它们。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM