当前位置: 动力学知识库 > 问答 > 编程问答 >

How to create a overlay with help bubbles on Android?

问题描述:

I recall seeing some android apps having a help overlay that greys the screen a bit and provides textbubbles with helpfull information pointing to various UI objects.

I thought this to be easy, just create a FrameLayoutwith 2 layers, 1 content, 1 helpoverlay.

However, it appears that you can't use a RelativeLayout with items that are based upon another RelativeLayout?

How would I go to position these bubbles? Manually?

网友答案:

Use a PopupWindow. a sample implementation can be found here : http://sree.cc/google/android/android-popup-window

You can use the popupWindow.showAsDropdown(View anchor) method to attach the popup to any view or manually set the x and y co-ordinates of the popup to be shown.

[EDIT]: you may also want to have a look here : http://code.google.com/p/simple-quickactions/

分享给朋友:
您可能感兴趣的文章:
随机阅读: