Skip to content

Commit 9e8179a

Browse files
author
Ricardo Cervera
committed
docs: Fixed RecyclerView example. Bug: 15973665
Change-Id: Ia3c2264d014c8d2e67b2ee96d097be110042c56f
1 parent 63477e6 commit 9e8179a

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)