开发者

displaying one image on the top of another in android

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜