ShowcaseView icon indicating copy to clipboard operation
ShowcaseView copied to clipboard

can't click anywhere on fragment after hiding showcaseView

Open d34n0s opened this issue 9 years ago • 2 comments

I was looking to implement this library (v 5.4.0), but can't seem to get it working correctly.

Hopefully it's something simple.

I have an activity that loads a fragment (android.support.v4.app.Fragment) via XML.

The fragment implements : View.OnClickListener , View.OnTouchListener , SwipeRefreshLayout.OnRefreshListener ,OnShowcaseEventListener

Inside that fragment, after the view has loaded I call showcaseView and target it at a LinearLayout

    ViewTarget vt = new ViewTarget(ll_dashboard_getLatest);

    //int ssId = 100;

    showcaseView = new ShowcaseView.Builder(getActivity())
            .setTarget(vt)
            .setContentTitle("Title")
            .setContentText("Content")
            .setStyle(R.style.CustomShowcaseTheme)
            .hideOnTouchOutside()
            .setShowcaseEventListener(this)
            //.singleShot(ssId)
            .build();

The problem is, after clicking the hide button (or anywhere on the showcaseView) to hide it, the fragment no longer responds to click / touch events.

The fragment works fine if i don't load showcaseView

any pointers would be much appreciated.

Just as a side note. showcaseView is working fine on activities and fragments loaded via fragment manager. It's only fragments loaded via XML layouts on the activity which seem to be affected.

Cheers,

d34n0s avatar Jan 19 '16 23:01 d34n0s

Interesting! I'll see if I can reproduce this. If you can supply some more code, that will be really helpful.

amlcurran avatar Feb 09 '16 21:02 amlcurran

I can't seem to reproduce this. I've added a fragment demo to the sample app but can't reproduce the issue you described. Could you see if you can reproduce it?

amlcurran avatar Feb 09 '16 23:02 amlcurran