possibility of returning span position?
Fahad-pnw opened this issue · 4 comments
Fahad-pnw commented
I need to return a span position so i could open a custom view below it (pop up) with an anchor/pointer to that particular text. Could you guide how i can do it with this library>?
neworld commented
Hello,
Could you show a code example using SpannableStringBuilder
of this feature?
Fahad-pnw commented
Hi, thanks for the quick responsible, i havent used the library, instead
working directly with the builder and overridden clickable span. Now i need
to get the location and pass is to an anchor of a tooltip to display that
view. Tooltip libraries by default only accept a view as an anchor, i may
have to build some functionality as a work around to pass coords instead of
the view.
I'll post the code as i am back on my workstation. But to explain what i am
looking for, is a mean to get position of the span so i can add a relative
layout, such as a tooltip.
…On Wed, Mar 28, 2018, 16:27 Andrius Semionovas ***@***.***> wrote:
Hello,
Could you show a code example using SpannableStringBuilder of this
feature?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#10 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AJERSlCjS5mjwGon9hqcKP2SJkWZDWvPks5ti3OpgaJpZM4S-dFm>
.
neworld commented
This library is just a wrapper for SpannableStringBuilder
and helps avoid labor work for calculating span positions. However, this problem looks quite interesting, and maybe I could make some tweaks to help implement this feature. But first, I am needed to know possible solutions. I look forward to seeing a sample from you.
Fahad-pnw commented
Thanks. Will add it soon though right now i am like pulling my hair,
probably will need to draw rectangles or somehow get positions by
ontouchevent on clickable span and may be then pass it to a relative view.
As common as this use case is, I'm puzzled I'm not finding much help from
google.
…On Wed, Mar 28, 2018, 18:55 Andrius Semionovas ***@***.***> wrote:
This library is just a wrapper for SpannableStringBuilder and helps avoid
labor work for calculating span positions. However, this problem looks
quite interesting, and maybe I could make some tweaks to help implement
this feature. But first, I am needed to know possible solutions. I look
forward to seeing a sample from you.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#10 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AJERSkOBzx-rLA2kShMqXgA5M189tUV7ks5ti5ZagaJpZM4S-dFm>
.