Passing null for root studio gives me this warning:
Avoid passing null as the view root (need to resolve layout parameters on the inflated layout\'s r
I found a good article about LayoutInflater. The author explains how all the versions of the inflate method work and gives examples of ListView and AlertDialog
http://www.doubleencore.com/2013/05/layout-inflation-as-intended/
Update #1.
This answer recently helped me, too. https://stackoverflow.com/a/5027921/1065835