Skip to content

Instantly share code, notes, and snippets.

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