amlcurran / ShowcaseView

[Archived] Highlight the best bits of your app to users quickly, simply, and cool...ly
5.6k stars 1.29k forks source link

can't click anywhere on fragment after hiding showcaseView #356

Open d34n0s opened 8 years ago

d34n0s commented 8 years ago

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,

amlcurran commented 8 years ago

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

amlcurran commented 8 years ago

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?