Skip to content

Error when using dataBinding #7

@hventura

Description

@hventura

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions