开发者

Android. Draw bitmap between two layouts

开发者 https://www.devze.com 2023-02-18 23:28 出处:网络
I want to make application which will have back开发者_如何学Cground and some picture with alpha channel in front. Between them i want to draw bitmap/animation.

I want to make application which will have back开发者_如何学Cground and some picture with alpha channel in front. Between them i want to draw bitmap/animation. How can i do it ?


That is easy. You can use FrameLayout as the root layout and set a background to it. Then add two more LinearLayouts which fill the screen. In the first you may add your animated views like ImageView, while in the second you can insert an ImageView or ImageButton with a transparent image in it.

There are many other ways to do this like using a custom view for your animated layer etc. Check my example here: How can I use the animation framework inside the canvas?

0

精彩评论

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

关注公众号