Coder Social home page Coder Social logo

Allow HTML or Spanned text about tooltips HOT 3 CLOSED

donjerick avatar donjerick commented on July 17, 2024
Allow HTML or Spanned text

from tooltips.

Comments (3)

donjerick avatar donjerick commented on July 17, 2024

Also if you can consider the following:

  • Allow change on corner radius.
  • Add shadow (not sure if this is included in setElevation(); )
  • Allow change on text size, typeface.
  • Auto-dismiss tooltip onTap on the screen.

Thank you!

from tooltips.

tomergoldst avatar tomergoldst commented on July 17, 2024

Hi,
I will check the possibilty to add a more customized text like you requested.

About your request of a link at the tooltip, Do you know that you can use the onTipDismissed interface to react when a tip is being dismissed? and thus do anything on your mind like open a web view.
If you want to dismiss a tip as response to user interaction you can call 'findAndDismiss' from code. A good way to react to any user action on screen is to override 'onUserInteraction' of an activity.

This library uses 9-patch images for the tip background thus corner radius and shadow are fixed, The setElevation here has been modfied to discard the dynamic shadow cause it can't work well in this case but it's still important in cases where you might have a view with higher elevetion hiding your tip. I do have intention to replace those with vector shapes in the future.

Have a nice day!

from tooltips.

tomergoldst avatar tomergoldst commented on July 17, 2024

Hi @donjerick

Version 1.0.3 with spannable text support was releasesd. Just use the constructor with spannable parameter instead of the normal constructor.

from tooltips.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.