2011年3月3日

Android Jar Resource

摘要: jar引用的资源文件必须放在assets文件夹中,并且布局文件和Drawable必须是编译过的格式,否则布局文件无法解析,一般的Drawable尺寸不正确,Nine-Patch无法拉伸。 抽取布局文件的方法如下,其中fileName必须包含assets/路径: public static View extractView(Context context, String fileName, ViewGroup root) throws Exception { XmlResourceParser parser = context.getAssets().openXmlReso... 阅读全文

posted @ 2011-03-03 13:57 爱吃草莓的维尼 阅读(898) 评论(0) 推荐(0) 编辑

导航