Skip to content

Commit 25303a9

Browse files
Ricardo CerveraAndroid (Google) Code Review
authored andcommitted
Merge "docs: Fixed RecyclerView example. Bug: 15973665" into klp-modular-docs
2 parents f1b18de + 9e8179a commit 25303a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/html/preview/material/ui-widgets.jd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ public class MyAdapter extends RecyclerView.Adapter<MyAdapter.ViewHolder> {
132132
int viewType) {
133133
// create a new view
134134
View v = LayoutInflater.from(parent.getContext())
135-
.inflate(R.layout.my_text_view, null);
135+
.inflate(R.layout.my_text_view, parent);
136136
// set the view's size, margins, paddings and layout parameters
137137
...
138138
ViewHolder vh = new ViewHolder(v);

0 commit comments

Comments
 (0)