We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
@Override public View getView(int i, View view, ViewGroup viewGroup)
The view element ist on every call null, so every time i need to create a new view How can i use the viewholder?
@Override public View getView(int i, View view, ViewGroup viewGroup) { DataViewHolder viewHolder; if(view == null){ LayoutInflater layoutInflater = LayoutInflater.from(viewGroup.getContext()); view = layoutInflater.inflate(R.layout.item_card,viewGroup,false); viewHolder = new DataViewHolder(view); view.setTag(viewHolder); }else{ // DO NOT TRIGGER viewHolder = (DataViewHolder) view.getTag(); } viewHolder.bindData(context, (ProductCardData) getItem(i)); return view; }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The view element ist on every call null, so every time i need to create a new view How can i use the viewholder?
The text was updated successfully, but these errors were encountered: