Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Spotlight covering bottom phone navigation #109

Open
TuricaHoria opened this issue Nov 4, 2020 · 2 comments
Open

Spotlight covering bottom phone navigation #109

TuricaHoria opened this issue Nov 4, 2020 · 2 comments

Comments

@TuricaHoria
Copy link

image

So i put on an overlay with some items and it goes over my navigation:

private fun spotlightView(view: View , ) {
val overlay = layoutInflater.inflate(R.layout.fragment_calendar_day_detailed_info,
context?.let { FrameLayout(it) })
val target =
Target.Builder()
.setAnchor(view)
.setOverlay(overlay)
.isClickable(false)
.setShape(RoundedRectangle(view.height.toFloat(), view.width.toFloat(), 0f))
.setOnTargetListener(
object : OnTargetListener {
override fun onEnded() {}
override fun onStarted() {}
}).build()

        val spotlight = activity?.let { activity ->
            Spotlight.Builder(activity)
                .setTargets(target)
                .setBackgroundColor(R.color.spotlightBackground)
                .setDuration(1000L)
                .setAnimation(DecelerateInterpolator(2f))
                .setOnSpotlightListener(object : OnSpotlightListener {
                    override fun onStarted() {}
                    override fun onEnded() {}
                })
                .build()
        }
        spotlight?.start()

I would love the help :D

@anmolvermamm
Copy link

Facing the same

@shrikantingole08
Copy link

    ViewGroup viewGroup = mActivity.getWindow().getDecorView().findViewById(android.R.id.content);|

use this container 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants