Android PopupWindow : Show Tooltip Help Text

PopupWindow is used to show floating view on display at specified position. It’s a floating container that appears on top of current activity. PopupWindow can have their own layout and can be set after inflating with setContentView(View).


Using PopupWindow we will implement Tooltip view. Tooltip view is getting quite popular these days with Android developers. It is used for engaging experience of application user. Like for first installation with series of Tooltip view around different anchor view, you can give a tour of your application.

Screenshots

[su_carousel source=”media: 115,116,117" width=”700" height=”400" title=”no” mousewheel=”no”]

Sample PopupWindow Application

Update your res/layout/activity_main.xml as below. It will have a button which will act as anchor view for popup window.

You may also like...

4 Responses

  1. Nabeel Hafeez says:

    I want add Piechart in Popup. Please Help me for adding chart in popup

  2. Banty Panda says:

    When I give some Gravity to the tooltip, like Gravity.LEFT or Gravity.RIGHT, the tooltip goes all the way to the down of the screen, any idea why this is happening?

  1. May 9, 2016

    […] Android PopupWindow : Show Tooltip Help Text – AndroidSRC – PopupWindow is used to show floating view on display at specified position. It’s a floating container that appears on top of current activity. […]

Leave a Reply

Your email address will not be published. Required fields are marked *