EnableTouchOnFocusedView Not working in case of CustomView
alishkumar opened this issue · comments
Alish Kumar commented
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
Faruk Toptaş commented
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?