sephiroth74 / android-target-tooltip

Create Toast like tooltips, but targets can be specified, plus custom properties and features
MIT License
1.5k stars 278 forks source link

cannot show number #68

Open zhang-weifu opened 7 years ago

zhang-weifu commented 7 years ago

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 commented 7 years ago

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

lurtzn commented 7 years ago

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)

trungnn307 commented 7 years ago

I got same issue. Anyone got workaround