Skip to content

Commit 7af4e81

Browse files
author
Ricardo Cervera
committed
docs: Fixed RecyclerView example. Bug: 16483811
Change-Id: I1c501c97026dfaaac88d7398160ff192fee4fb05
1 parent 22bdcd2 commit 7af4e81

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, parent);
135+
.inflate(R.layout.my_text_view, parent, false);
136136
// set the view's size, margins, paddings and layout parameters
137137
...
138138
ViewHolder vh = new ViewHolder(v);

0 commit comments

Comments
 (0)