I don't know this until recently, but we should avoid passing null as the view root when inflating (see http://www.doubleencore.com/2013/05/layout-inflation-as-intended/ ). So this would be changed to:
```
View view = LayoutInflater.from(context).inflate(R.layout.note_list_item, parent, false);
```