简体   繁体   English

Android:如何在应用程序清单中引用库drawable

[英]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. 我有一个免费的Android应用程序,我想现在分发为免费(有广告)和付费(没有广告),所以唯一的区别是在一些布局文件,我只是删除付费版本中的广告。

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. 我正在处理付费应用程序版本,无法弄清楚如何在清单文件中引用应用程序图标的drawable。

Am I going about this all wrong? 我错了吗? Help is much appreciated. 非常感谢帮助。

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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