Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@jezinka
Created August 11, 2018 07:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jezinka/ce26ed4e65d0a1744c085be3dd32bdc0 to your computer and use it in GitHub Desktop.
Save jezinka/ce26ed4e65d0a1744c085be3dd32bdc0 to your computer and use it in GitHub Desktop.
@Override
public ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
Context context = parent.getContext();
LayoutInflater layoutInflater = LayoutInflater.from(context);
View weatherView = layoutInflater.inflate(R.layout.recycler_view_item, parent, false);
return new ViewHolder(weatherView);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment