android-target-tooltip icon indicating copy to clipboard operation
android-target-tooltip copied to clipboard

How can I set the textSize for the tooltip?

Open s4ns4a opened this issue 7 years ago • 1 comments

s4ns4a avatar Jul 06 '18 06:07 s4ns4a

Hello @androidlab. It has become late, but I hope this helps.

To change textSize, you need to make custom style like below.

    <style name="TooltipLayout">
        <item name="ttlm_textStyle">@style/TooltipText</item>
    </style>

    <style name="TooltipText">
        <item name="android:textSize">20sp</item>
    </style>

then set this style programmatically.

Tooltip.Builder(context)
        .styleId(R.style.TooltipLayout)
        ...

Dagzo avatar Dec 13 '19 01:12 Dagzo