Used FancyShowCaseView version
1.3.5
Stacktrace
java.lang.IllegalArgumentException:
at com.android.internal.widget.DecorCaptionView.addView (DecorCaptionView.java:269)
at android.view.ViewGroup.addView (ViewGroup.java:4919)
at android.view.ViewGroup.addView (ViewGroup.java:4892)
at me.toptas.fancyshowcase.FancyShowCaseView$focus$1.run (FancyShowCaseView.kt:135)
at android.os.Handler.handleCallback (Handler.java:883)
at android.os.Handler.dispatchMessage (Handler.java:100)
at android.os.Looper.loop (Looper.java:214)
at android.app.ActivityThread.main (ActivityThread.java:7408)
at java.lang.reflect.Method.invoke (Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:492)
at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:947)
How you show/hide FancyShowCaseView (in Activity or Fragment, in which method)
Example:
In Fragments onCreateView method I use the code below to show:
final FancyShowCaseView scGame1 = new FancyShowCaseView.Builder(requireActivity())
.fitSystemWindows(true)
.title(getString(R.string.help_sc_game1))
.enableAutoTextPosition()
.focusOn(firstButton)
.build();
final FancyShowCaseView scGame2 = new FancyShowCaseView.Builder(requireActivity())
.fitSystemWindows(true)
.title(getString(R.string.help_sc_game2))
.enableAutoTextPosition()
.focusOn(secondButton)
.build();
queue = new FancyShowCaseQueue()
.add(scGame1)
.add(scGame2);
queue.show();
At the moment the crash only occured on the Surface Duo. So maybe it is something with the Dual Screen?
Used FancyShowCaseView version
1.3.5
Stacktrace
How you show/hide FancyShowCaseView (in Activity or Fragment, in which method)
Example:
In Fragments
onCreateViewmethod I use the code below to show:At the moment the crash only occured on the Surface Duo. So maybe it is something with the Dual Screen?