worker8 / TourGuide

TourGuide is an Android library that aims to provide an easy way to add pointers with animations over a desired Android View
MIT License
2.63k stars 416 forks source link

CustomView in setCustomView not working #142

Open CharanjeetRPOPS opened 6 years ago

CharanjeetRPOPS commented 6 years ago

When i am trying to set custom view in setCustomView it shows a black shadow line instead of my custom view

below is my code:

tourGuide = TourGuide.create(this) {

        toolTip {

            val layoutInflater =getSystemService(Context.LAYOUT_INFLATER_SERVICE) as LayoutInflater
            val view = layoutInflater.inflate(R.layout.row, null, true)

            setWidth(200)
            setCustomView(view  as ViewGroup)

        }
        overlay {
            disableClick { false }
            disableClickThroughHole { false }
            style { Overlay.Style.ROUNDED_RECTANGLE }
            onClickListener { View.OnClickListener { tourGuide.cleanUp() } }
            backgroundColor { Color.parseColor("#AAFF0000") }
        }

    }.playOn(button)

@worker8

kevalpatel2106 commented 5 years ago

You should set the shadow off.

 toolTip {
    shadow { false }
}