I'm working to improve an android recycler view by following this simple tutorial. I found a java issue: if I declare an interface inside a non-static view holder inner class like below...
public class DumbViewHolder extends RecyclerView.ViewHolder {
//...
ExcellentAdventureListener listener;
public interface ExcellentAdventureListener {
void onMapClicked(ExcellentAdventure item);
void onTitleClicked(ExcellentAdventure item);
}
//...
}
java gives me the following error:
INNER CLASS CANNOT HAVE STATIC DECLARATION.
why? and how can I fix it?