ToolTipDialog
An easy-to-use dialog to add tooltips to your app with teh ability to point to specific screen locations and also highlight views on-screen.
Great for on-boarding, calling out new features, or simply calling out bits of UI.
Features
- Show a default dialog pop up banner
- Align the dialog to a certain vertical location on screen
- Point to a specific element on-screen
- Highlight specific UI elements by letting them "peek through" a background shade
Gradle Setup
In your app's build.gradle
add
Usage
The below are shown as called by an Activity
Basic
Vertically positioned
Great for underlining an element or section of you UI.
Point to specific location
You can also point to a specific point on screen. Great for calling out buttons and improving discoverability of buried features.
View the sample app for how to point to specific views.
Peek-through views
Draw a typical shade behind your dialog but let specific views peek through.
You can also add as many of these as you'd like
FAQ
My view keeps saying it's at x:0, y:0
, making the dialog to point to the wrong spot
You'll need to make sure that you let the system have time to inflate the layout or else the views won't have their proper sizes/dimenstions.
If you need to show the tooltip on an early lifecycle event like onCreate()
or onViewCreated()
, yout can usually solve this issue by adding an additional delay or, more reliably, adding a ViewTreeObserver.