I have a ListFragment Activity in my application, in which, i don´t override the oncreateview. I would like to inflate a View from xml the first time that list is shown. At the moment I am trying to inflate it on the onActivityCreated method, and using:
LayoutInflater layoutInflater = (LayoutInflater)getApplicationContext().getSystemService(Context.LAYOUT_INFLATER_SERVICE);
View view=layoutInflater.inflate(R.layout.my_view,null);
What is the correct approach to do this?