mList from Custom ArrayList not working...
selimonline opened this issue · 1 comments
selimonline commented
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 commented
How are the parameters in the constructor of SingleListViewItemActiveCalculator defined?