Open AndrewBerlin opened 8 years ago
I have same question too. Is there any way to apply our custom view to showcase?
ShowcaseTooltip toolTip1 = ShowcaseTooltip.build(this)
.corner(30)
.customView(LayoutInflater.from(this).inflate(R.layout.tooltip_layout, null))
.textColor(Color.parseColor("#007686"))
.text("This is a very funky tooltip
This is a very long sentence to test how this tooltip behaves with longer strings.
Tap anywhere to continue");
add like this
Is there any desire to support custom views rather than just having a TextView controllable via a Builder? I have forked the repository and made some changes (not yet pushed) to support a custom Builder method (.setView(View v)) to allow the user to provide their own custom View to be displayed in front of the mask and under/above the Highlight Circle/Rectangle, instead of the TextView.
In addition I also added the option for a "pointer" (e.g. a triangle drawable) that bridges the Highlight to the custom view. If there is any interest in adding this functionality, I can clean my code up to make it more extensible rather than just fitting my use case and submit a pull request. However it looks like this library has been mostly abandoned (last comment by the owner last October), so I figured I would ask first.