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

Error when using dataBinding #7

Open
hventura opened this issue Nov 22, 2021 · 0 comments
Open

Error when using dataBinding #7

hventura opened this issue Nov 22, 2021 · 0 comments

Comments

@hventura
Copy link

Good day HamidreazaAmz, first of all, thanks for the updated plugin, great job.
Second, i am getting this error when using dataBinding:
Type mismatch: inferred type is Indicators.PagerIndicator but com.potyvideo.slider.library.Indicators.PagerIndicator! was expected

I am trying to use a custom indicator and passing the binding object:
slider.setCustomIndicator(binding.customIndicator)
I've tried to cast it to PagerIndicator, even to com.potyvideo.slider.library.Indicators.PagerIndicator

And if i try to use the findViewById:
slider.setCustomIndicator(requireActivity().findViewById(R.id.custom_indicator))
The error is this:

error: cannot find symbol
import com.potyvideo.slider.library.Indicators;
                                   ^
  symbol:   class Indicators
  location: package com.potyvideo.slider.library

Wihtout the custom indicator it works fine. If you need mor information please ask :)
Cumpliments, Helder Ventura

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

1 participant