I am a little confused. I've set up a RecyclerView
as per the tutorial on google/android site and I get the following error:
Inner classes cannot have static declaration
Of course, I do have a nested static class but this is how android/google defined it.
public class ItemsViewAdapter extends RecyclerView.Adapter<ItemsViewAdapter.ViewHolder> {
// ...
// ...
public static class ViewHolder extends RecyclerView.ViewHolder {
// ...
}
Why am I getting this error? I hear its better to use static
for nested classes so you are not wasting a reference, but the current version of android studio is complaining
Any ideas?