Tooltip Drawable
A Tooltip that supports shape theming and draws a pointer on the bottom in the center of the supplied bounds. Additional margin can be applied which will prevent the main bubble of the Tooltip from being drawn too close to the edge of the window.
Note: setRelativeToView should be called so TooltipDrawable
can calculate where it is being drawn within the visible display.
Functions
Link copied to clipboard
open fun createFromAttributes(@NonNull context: Context, @Nullable attrs: AttributeSet): TooltipDrawable
open fun createFromAttributes(@NonNull context: Context, @Nullable attrs: AttributeSet, @AttrRes defStyleAttr: Int, @StyleRes defStyleRes: Int): TooltipDrawable
Returns a TooltipDrawable from the given attributes.
Link copied to clipboard
Should be called when the view is detached from the screen.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Returns the TextAppearance used by this tooltip.
Link copied to clipboard
Returns the padding between the text of TooltipDrawable and the sides in terms of pixels.
Link copied to clipboard
Link copied to clipboard
Handles a change in the text's size.
Link copied to clipboard
Should be called to allow this drawable to calculate its position within the current display frame.
Link copied to clipboard
A fraction that controls the scale of the tooltip and the opacity of its text.
Link copied to clipboard
Sets this tooltip's text appearance.
Link copied to clipboard
Sets this tooltip's text appearance using a resource id.
Link copied to clipboard
Sets the padding between the text of the TooltipDrawable and the sides to be
padding
.Link copied to clipboard
Sets the text to be displayed using a string resource identifier.