Gaurav Arora
Gaurav Arora

Reputation: 8362

Show Tool Tip View in Android

I want to show a tool tip type popup in android, on a (i) button ( or view ) click, as i have shown in the design.

Is it possible in android, and the i button on which I have to show this tool-tip is already in a popup.

Thanks

enter image description here

Upvotes: 5

Views: 3228

Answers (3)

Saeed-rz
Saeed-rz

Reputation: 1443

use popupWindow to show it
but you need draw your own layout like your sample pic.

PopupWindow m_PopUpWindow = new PopupWindow(m_Context);
m_PopUpWindow.setContentView('your layout');
m_PopUpWindow.setHeight('Popup Height');
m_PopUpWindow.setWidth('Popup Width');
m_PopUpWindow.showAsDropDown('where you want to show', 'x pos', 'y pos');

Upvotes: 1

user2568702
user2568702

Reputation:

Use GreenDroid https://github.com/cyrilmottier/GreenDroid A collection of Android widgets in that you can use quickactionbar

or Go through with this URL http://www.londatiga.net/it/how-to-create-quickaction-dialog-in-android/

Upvotes: 0

Anup Cowkur
Anup Cowkur

Reputation: 20563

Yes. But you'll have to create it yourself. It'll be a custom component. Here's some sample code to achieve this from Android framework engineer Roman Nurik: https://gist.github.com/romannurik/3982005

Upvotes: 1

Related Questions