What is the real difference between :

```
return context.getLayoutInflater().inflate(R.layout.my_layout, null);

```

> 
> Inflate a new view hierarchy from the specified xml resource.
> 
> 
> 

and

```
return View.inflate(context, R.layout.my_layout, null);

```

> 
> Inflate a view from an XML resource. This convenience method wraps the LayoutInflater class, which provides a full range of options for view inflation.
> 
> 
>