Arranged the fragment to give the inflater to the adapter.