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

mList from Custom ArrayList not working... #94

Open
selimonline opened this issue Jun 4, 2018 · 1 comment
Open

mList from Custom ArrayList not working... #94

selimonline opened this issue Jun 4, 2018 · 1 comment

Comments

@selimonline
Copy link

selimonline commented Jun 4, 2018

First of all thanks for this awesome library.
But honestly very complex to implement for beginners like me....
Any ways,
I have an ArrayList
private ArrayList<Videos> videos=new ArrayList<Videos>();
Videos.java

public class Videos implements ListItem {
    private String username;
    public String getUsername() { return this.username; }
    public void setUsername(String username) { this.username = username; }

ListItem functions... setACtive and others 

now when I am trying to implement

private final ListItemsVisibilityCalculator mVideoVisibilityCalculator =
            new SingleListViewItemActiveCalculator(new DefaultSingleItemCalculatorCallback(), videos);

here videos is already an ArrayList=List

It gives
Error:(85, 95) error: incompatible types: ArrayList cannot be converted to List<? extends ListItem>

Any help highly appreciated. Thanks

@derWud
Copy link

derWud commented Jun 7, 2018

How are the parameters in the constructor of SingleListViewItemActiveCalculator defined?

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

2 participants