29jitender / Spotlight

Spotlight is an Android library used to onboard users by showcasing specific features in the app.
Apache License 2.0
1.27k stars 163 forks source link

maskcolor is not transparent. #48

Closed Ankur008 closed 7 years ago

Ankur008 commented 7 years ago

thanks for this awesome library. But I am not able to set the mask color to transparent. How do i do?

        config.setIntroAnimationDuration(400);
        config.setFadingTextDuration(400);
        config.setHeadingTvSize(32);
        config.setSubHeadingTvSize(16);
        config.setMaskColor(android.R.color.transparent);
        config.setLineAnimationDuration(400);
        config.setDismissOnTouch(true);
        config.setDismissOnBackpress(true);
        config.setRevealAnimationEnabled(true);
        config.setPerformClick(true);

but still getting the primary color background. any idea?

dhavalwooplr commented 7 years ago

Thanks a lot Ankur. Following are the effects of using different Mask color. Is this what you want?

  1. config.maskColor(Color.parseColor("#dc000000")) device-2017-02-17-122202

  2. config.setMaskColor(android.R.color.transparent) device-2017-02-17-122409