简单的ImageView彩动画 [英] Simple ImageView color animation

查看:156
本文介绍了简单的ImageView彩动画的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好我是比较新的Andr​​oid来了,我想,如果可能的话,在哪里,以解决我的问题寻找一些指导或建议。很显然,我不具备的信誉发表图片,所以我会尽力解释它,以及我可以。

Hi I am relatively new to Android, and I would like, if possible, some guidelines or suggestions on where to search in order to solve my issue. Apparently, I do not possess the reputation to post images, therefore I'll try to explain it as well as i can.

让我们说我有一个空瓶子,一旦该片段/活动叫我要介绍的动画将逐步和垂直方向(从底部到顶部)开始填补这一ImageView的水。

Let's say I have an empty bottle, and once this fragment/activity is called i want to introduce an animation that will gradually and vertically (from bottom to top) start filling this imageView with water.

任何想法或方向,

非常感谢,并提前!

推荐答案

如何具有瓶2图像?
一个(在前台)将是一个空瓶子透明度
该(背景),第二个将是

How about having 2 images of the bottle? One (on foreground) would be an empty bottle with transparency The (on background) second one would be the "shape of the liquid"

您的活动开始时,得到的背景之一,它的动画像张贴在这个主题:<一href=\"http://stackoverflow.com/a/12127985/4232337\">http://stackoverflow.com/a/12127985/4232337

when your activity starts, get the background one and animate it like posted on this topic : http://stackoverflow.com/a/12127985/4232337

希望这有助于!

这篇关于简单的ImageView彩动画的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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