Android:如何在应用程序清单中引用可绘制库
我有一个免费的 Android 应用程序,我现在想将其作为免费(带广告)和付费(不带广告)分发,因此唯一的区别在于一些布局文件,我只是删除了付费版本中的广告。
我尝试将所有代码从现有的免费应用程序移动到我设置为库项目的新项目,并且我从应用程序项目引用库项目。在清单文件中。
我想要做的是将免费应用程序完全包含在该库项目中,并创建两个引用该库的新应用程序项目,并更改付费应用程序的布局文件,删除广告。
我正在开发付费应用程序版本,但无法弄清楚如何在清单文件中引用应用程序图标的可绘制对象。
我这一切都错了吗?非常感谢您的帮助。
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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我的知识来自阅读类似的对话,而不是来自经验,但据我所知,如果它们包含在应用程序项目的库中,则无法引用任何资源。
My knowledge is from reading similar conversations not from experience, but AFAIK any resources can NOT be referenced if they are contained inside the library from the app project.