What does inflater.inflate() do?
android
Solution
You have a `View` defined in your xml file. E.g. you have a `layout` for a list row.
You want to create a `View` from that xml. E.g. your `ListAdapter` requires you to create a `View` for a list row in `ListAdapter.getView()`;
So by using `inflater.inflate()` you create your `View` from your XML file.
There's also a static method `View.inflate()` which does the same.
Problem
I went through the API but could not understand well. I could not understand the result of this method. I am completely new to Android & require help. ``` package com.javacodegeeks.android.fragmentstest; import android.app.Fragment; import android.os.Bundle; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; public class FragmentTwo extends Fragment { @Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { return inflater.inflate(R.layout.fragment_two, container, false); } } ```