Skip to content

Instantly share code, notes, and snippets.

@jezinka
Created Aug 11, 2018
Embed
What would you like to do?
@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