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

cannot show number

Open zhang-weifu opened this issue 8 years ago • 3 comments

I found when set text with number, the tooltips will not show number. blow are code(the demo application ,just modify some const string) and screen shot.

image

image

zhang-weifu avatar Dec 15 '16 16:12 zhang-weifu

I know the reason---the autolink property of the textview label.

zhang-weifu avatar Dec 19 '16 06:12 zhang-weifu

is there a way to disable the autolink property for the textview? i have tried to adjust the style, but it didn't help:

<style name="ToolTipLayoutCustomStyle" parent="ToolTipLayoutDefaultStyle">
    <item name="ttlm_overlayStyle">@style/ToolTipOverlayCustomStyle</item>
    <item name="android:textAppearance">@style/ToolTipTextStyle</item>
    <item name="android:autoLink">none</item>
</style>

<style name="ToolTipTextStyle">
    <item name="android:autoLink">none</item>
</style>

<style name="ToolTipOverlayCustomStyle" parent="ToolTipOverlayDefaultStyle">
    <item name="android:autoLink">none</item>
</style>

new Tooltip.Builder(101) .withStyleId(R.style.ToolTipLayoutCustomStyle)

lurtzn avatar Feb 21 '17 13:02 lurtzn

I got same issue. Anyone got workaround

trungnn307 avatar Jul 28 '17 03:07 trungnn307