Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0f1e067a authored by Ricardo Cervera's avatar Ricardo Cervera Committed by Android Git Automerger
Browse files

am 472e234d: am 7af4e812: docs: Fixed RecyclerView example. Bug: 16483811

* commit '472e234d':
  docs: Fixed RecyclerView example. Bug: 16483811
parents 39572996 472e234d
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -132,7 +132,7 @@ public class MyAdapter extends RecyclerView.Adapter<MyAdapter.ViewHolder> {
                                                   int viewType) {
                                                   int viewType) {
        // create a new view
        // create a new view
        View v = LayoutInflater.from(parent.getContext())
        View v = LayoutInflater.from(parent.getContext())
                               .inflate(R.layout.my_text_view, parent);
                               .inflate(R.layout.my_text_view, parent, false);
        // set the view's size, margins, paddings and layout parameters
        // set the view's size, margins, paddings and layout parameters
        ...
        ...
        ViewHolder vh = new ViewHolder(v);
        ViewHolder vh = new ViewHolder(v);