开发者

displaying one image on the top of another in android

开发者 https://www.devze.com 2023-02-24 22:29 出处:网络
I am developing a small game. I have displayed an image as the background and now want to display another image in the bottom middle of the scree. Any ideas how to do开发者_开发百科 it?

I am developing a small game. I have displayed an image as the background and now want to display another image in the bottom middle of the scree. Any ideas how to do开发者_开发百科 it?

Thanks


You can use FrameLayout for your purpose , If you have set background to layout , Use imageview and position it.

Check here , Though it talks about merging layouts and optimization , there is a good example of using FrameLayout.
http://android-developers.blogspot.in/2009/03/android-layout-tricks-3-optimize-by.html

0

精彩评论

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