Code Monkey home page Code Monkey logo

Comments (4)

stephanepechard avatar stephanepechard commented on August 19, 2024 3

I managed to do it by overriding the android:textAppearance item:

<style name="TooltipLayoutNewStyle" parent="ToolTipLayoutDefaultStyle">
    <item name="android:textAppearance">@style/ToolTipText</item>
</style>

<style name="ToolTipText" parent="@android:style/TextAppearance.Medium">
    <item name="android:textColor">@android:color/white</item>
</style>

from android-target-tooltip.

rjzsatvara avatar rjzsatvara commented on August 19, 2024

copy all code and just add this in style.xml

<style name="ToolTipLayoutDefaultStyle"> @dimen/ttlm_default_padding @android:color/transparent ?attr/colorAccent @dimen/ttlm_default_stroke_weight @dimen/ttlm_default_corner_radius 1.4 @style/ToolTipTextStyle @style/ToolTipOverlayDefaultStyle @dimen/ttlm_default_elevation </style>
<style name="ToolTipTextStyle">
    <item name="android:textStyle">bold|italic</item>
    <item name="android:textColor">@color/white</item>
</style>

<style name="ToolTipOverlayDefaultStyle">
    <item name="android:color">?attr/colorAccent</item>
    <item name="ttlm_repeatCount">99</item>
    <item name="ttlm_duration">600</item>
    <item name="android:alpha">0.5</item>
    <item name="android:layout_margin">8dp</item>
</style>

your issue will be solve...

from android-target-tooltip.

gauravarora90 avatar gauravarora90 commented on August 19, 2024

How it is working. not working in my case. Can you please recheck your code ?

from android-target-tooltip.

gauravarora90 avatar gauravarora90 commented on August 19, 2024

Where have you used ToolTipTextStyle then ? You have just created and have not used it anywhere

from android-target-tooltip.

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.