机器人如何与资源出口罐子?

编程入门 行业动态 更新时间:2024-10-12 05:54:03
本文介绍了机器人如何与资源出口罐子?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

还有一些问题需要你的帮助! 我创建建立我的自定义部件的Andr​​oid项目,我想它导出为一个罐子其他项目,这样重复使用它们方便,但现在的问题是,我不能用它包含在我的自定义窗口小部件的jar资源,例如PNG图片,它得到一个空的R级的资源ID!我该如何求解带呢? 更新问题: 我怎样才能在code解析LayerDrawable XML从资产的文件夹?

there's some problems need your help! I create an Android project for build my custom widget, and I want to export it as a jar for other project so that reuse them conveniently, but now a problem is, I can't use resources which is included in my custom widget jar, for example a png picture, it gets a null from the resource Id of class R! How can I sovle it? Update question: How can I parse LayerDrawable xml from assets folder in code?

推荐答案

您无法导出自包含的Andr​​oid库JAR在这个时候,并宣布将在未来的SDK版本。 developer.android/intl/ja/guide/developing/projects/index.html#LibraryProjects

You cannot export self-contained Android Library jar at this time and announced will be available in the future sdk release. developer.android/intl/ja/guide/developing/projects/index.html#LibraryProjects

更多推荐

机器人如何与资源出口罐子?

本文发布于:2023-05-29 03:38:49,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/335896.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:罐子   机器人   资源

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!