am 9c36b835: am 7a425360: am 25303a98: Merge "docs: Fixed RecyclerView example. Bug: 15973665" into klp-modular-docs

* commit '9c36b83519804000a3d83e141c3ce7455828b4db':
  docs: Fixed RecyclerView example. Bug: 15973665
This commit is contained in:
Ricardo Cervera
2014-07-18 23:18:09 +00:00
committed by Android Git Automerger

View File

@@ -132,7 +132,7 @@ public class MyAdapter extends RecyclerView.Adapter<MyAdapter.ViewHolder> {
int viewType) {
// create a new view
View v = LayoutInflater.from(parent.getContext())
.inflate(R.layout.my_text_view, null);
.inflate(R.layout.my_text_view, parent);
// set the view's size, margins, paddings and layout parameters
...
ViewHolder vh = new ViewHolder(v);