Can phonegap splash-screen display gif image?

烂漫一生 提交于 2020-01-14 13:36:25

问题


I tried to set a splash-screen image for my phonegap app.When I set a static image such as png, everything goes well. Now I need a loading animation on my splash screen and I try to set a gif image instead of static image. However, after I do that I can not start my app any more.

Can phonegap splash-screen be set as gif image?


回答1:


This isn't something Cordova/PhoneGap supports out of the box.

But if you're willing to dive in to Java/ObjC here are some possible approaches:

  • You could make a custom plugin for which ever platform you are targeting that could do your animations for you. Examples here and here.
  • Different from the previous approach you could make a custom plugin that loads another webview with the GIF image in that.

Both of these suggestions require a custom plugin or at the very least modifying an existing one.



来源:https://stackoverflow.com/questions/16893521/can-phonegap-splash-screen-display-gif-image

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!