TapTargetView icon indicating copy to clipboard operation
TapTargetView copied to clipboard

Layout do not responde when target is dismissed

Open emmanuel0027 opened this issue 6 years ago • 2 comments

  • [X ] I have verified the issue exists on the latest version
  • [ X] I am able to reproduce it

**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");
                }
            });
}`

emmanuel0027 avatar Oct 18 '19 20:10 emmanuel0027

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

MagneticLlama avatar Oct 24 '19 23:10 MagneticLlama

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.

laurentlr avatar Mar 25 '21 08:03 laurentlr