KeepSafe / TapTargetView

An implementation of tap targets from the Material Design guidelines for feature discovery.
Apache License 2.0
5.35k stars 587 forks source link

Layout do not responde when target is dismissed #365

Open emmanuel0027 opened 4 years ago

emmanuel0027 commented 4 years ago

**Version used: 1.13.0

Stack trace:

**Android version: 8.1.0

I'm using a target on fragment but, when target is dismissed the layout don't responde, any button can not be pressed, or any other element.

`@Override public void onViewCreated(@NonNull View view, @Nullable Bundle savedInstanceState) { super.onViewCreated(view, savedInstanceState);

    TapTargetView.showFor(getActivity(),                 // `this` is an Activity
            TapTarget.forView(view.findViewById(R.id.searchFabButton), "This is a target", "We have the best targets, believe me")
                    .targetCircleColor(R.color.white)
                    .drawShadow(true)
                    .textColor(R.color.white)
                    .tintTarget(false)
                    .outerCircleColor(R.color.black)
                    .dimColor(R.color.black)
                    .cancelable(true),

            new TapTargetView.Listener() {          // The listener can listen for regular clicks, long clicks or cancels
                @Override
                public void onTargetClick(TapTargetView view) {
                    super.onTargetClick(view);      // This call is optional
                    view.dismiss(true);
                    Log.d("TAG","onTargetClick");
                }

                @Override
                public void onOuterCircleClick(TapTargetView view) {
                    super.onOuterCircleClick(view);
                    Log.d("TAG","onOuterCircleClick");
                    view.dismiss(true);
                }

                @Override
                public void onTargetCancel(TapTargetView view) {
                    super.onTargetCancel(view);
                    view.dismiss(true);
                    Log.d("TAG","onTargetCancel");
                }
            });
}`
MagneticLlama commented 4 years ago

I am experiencing the same issue, but it's inconsistent.

laurentlr commented 3 years ago

Got same issue on Android 11 - MIUI 12.2.7 - Xiaomi Mi 10, one the feature discovery is dismiss I lose all click on main layout.