开发者

Android TransitionDrawable change Imageview background and foreground?

I have an ImageView with a TransitionDrawable background which works fine. W开发者_JAVA百科hat I would like to do is also to change the image inside the ImageView with the same transition applied. Or what would be the approach to change the background and foreground of an Imageview with a fade in effect?

Thanks.


Just as a try:

Can you hve an ImageView with a TransitionDrawable background and a transparent foreground(alpha=0)

And inside this ImageView add a child (also an ImageView) with a TransitionDrawable background and a transparent foreground.

I am guessing that the first ImageView's TransitionDrawable background will be the backround of the overall, and the second ImageView's TransitionDrawable background will be the foreground of the overall.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜