I get the lint warning, Avoid passing null as the view root when inflating views with null as parent, like:
LayoutInfl
From the documentation of View.inflate(), it says
Inflate a view from an XML resource. This convenience method wraps the
LayoutInflater class, which provides a full range of options for view inflation.
@param context The Context object for your activity or application.
@param resource The resource ID to inflate
@param root A view group that will be the parent. Used to properly inflate the layout_* parameters.