0

Up to now, there is no straightforward and official way for creating a Material Tooltip in java. I know that one can create a TooltipDrawable using:

TooltipDrawable tooltipDrawable = TooltipDrawable.createFromAttributes(getContext(), null, 0, labelStyle);

But attaching it to a view is a little complicated and cumbersome.

I tried to extract some related part from Material Slider source code as a utility class for this reason (that I believe this is the correct way), but I couldn't do that successfully.

Material slider with its Label

Is there a simple way to do this?

P.s. I am aware of similar GitHub Repositories like Balloon and superTooltips.

0

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.