We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents f1b18de + 9e8179a commit 25303a9Copy full SHA for 25303a9
docs/html/preview/material/ui-widgets.jd
@@ -132,7 +132,7 @@ public class MyAdapter extends RecyclerView.Adapter<MyAdapter.ViewHolder> {
132
int viewType) {
133
// create a new view
134
View v = LayoutInflater.from(parent.getContext())
135
- .inflate(R.layout.my_text_view, null);
+ .inflate(R.layout.my_text_view, parent);
136
// set the view's size, margins, paddings and layout parameters
137
...
138
ViewHolder vh = new ViewHolder(v);
0 commit comments