deano2390 / MaterialShowcaseView

A Material Design themed ShowcaseView for Android
Apache License 2.0
2.72k stars 526 forks source link

Support custom views #58

Open AndrewBerlin opened 8 years ago

AndrewBerlin commented 8 years ago

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.

c0d3sling3r commented 6 years ago

I have same question too. Is there any way to apply our custom view to showcase?

aayush0208 commented 2 years ago

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