faruktoptas / FancyShowCaseView

An easy-to-use customisable show case view with circular reveal animation.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

EnableTouchOnFocusedView Not working in case of CustomView

alishkumar opened this issue · comments

version 1.1.5

Screenshot if there is something wrong with ui

Example:
In Activity onCreate() method I use the code below to show:

btn_simple.setOnClickListener {
            FancyShowCaseView.Builder(this)
                .focusOn(constraintLayout)
                .closeOnTouch(false)
                .customView(R.layout.custom_layout, object : OnViewInflateListener {
                    override fun onViewInflated(view: View) {
                        view.findViewById<AppCompatButton>(R.id.button).setOnClickListener {
                            
                        }
                    }
                })
                .disableFocusAnimation()
                .enableTouchOnFocusedView(true)
                .focusShape(FocusShape.ROUNDED_RECTANGLE)
                .build()
            .show()
}

Your layout.xml file if the focus is wrong

Hi @alishkumar
Here is the working sample:

enableTouchOnFocusedView lets you click the focused view while show case is visible.

Can you share the wrong behavior?