开发者

Animation XML calling images on SDCard

So my app is to large for the Android Market so I'm having to figure out how to put my image files into a folder that will be downloaded after the app install. Heres the deal. The images are part of a frame by frame animation. I have my frame by frame animation set in an XML. Should I keep my XML inside my app? And if so how do I call the images on the SDCard from the XML? And if I'm totally off track please point me in the right direction. Thanks.开发者_开发技巧


Should I keep my XML inside my app?

You don't have a choice, if you want to define the AnimationDrawable as a resource.

And if so how do I call the images on the SDCard from the XML?

You can't, if you want to define the AnimationDrawable as a resource.

And if I'm totally off track please point me in the right direction.

An AnimationDrawable resource is not well suited to the technique you are trying. Either put the images in the APK, or manually construct your AnimationDrawable in Java code, or do not use AnimationDrawable.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜