Android的:故事书(动画,声音,图片) [英] Android: Storybooks (animation, sounds, pictures)

查看:237
本文介绍了Android的:故事书(动画,声音,图片)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我开发在Android中的故事书。我在网上冲浪相当长的一段时间关于在布局中插入多GIF动画的可能途径。我的应用程序的特点是:

I am developing a Storybook in Android. I was surfing the net for quite some time about the possible ways on inserting multiple animated gifs in a layout. My application's features are:

-10故事书 - 所以这意味着我不能用一个布局,每个故事的每一个场景,因为它可能会导致应用程序有一个大的文件大小。

-10 story books - so this means that I can't use one layout for every scenes of each story since it can cause the app to have a large file size..

- 动画(触摸)

-Sounds

我的问题是:
1.什么是显示多个gif动画最有效的方式。我用1只布置了几个场景(10场景每故事场景的最低#)preFER
2.如何既发挥动画和声音同步?

My questions are: 1. What is the most efficient way to display multiple animated gif. I prefer using 1 layout only for several scenes (10 scenes is the minimum # of scenes per story) 2. How can I play both animation and sounds simultaneously?

我希望你能有所帮助。

谢谢!

推荐答案

我要去猜测,这是你的第一个Android项目。 Android已经没有了GIF动画的大力支持和也不应因为GIF动画不处理动画的最佳方式。即使假设你能得到它的工作,你仍然会有声音同步的问题。但是,为了使长话短说,你的问题是问如何构建你的应用程序,这是不是那么简单的,因为它需要一些实验步骤。我建议你​​尝试下这样的教程GIF动画:

I'm going to guess that this is your first Android project. Android hasn't had great support for animated GIFs and nor should they because animated GIFs are not the best way to handle animation. Even if hypothetically you could get it to work you would still have problems synchronizing sound. But to make a long story short, your question is asking how to architect your app and this isn't so straight forward because it will require a number of experimental steps. I recommend you try an animated GIF following a tutorial like this:

GIF动画教程

您已经得到了1 GIF工作尝试将其扩展到多个GIF文件,然后触发后,它基于触摸。

After you have gotten one GIF working try to extend it to multiple GIFs and then trigger it based upon touch.

这篇关于Android的:故事书(动画,声音,图片)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆