I’m trying to rewrite an existing project using fragments to port my application on tablet.
I’m replacing activities with fragments.
The problem is that I don’t know what is the equivalent to setContentView method? Is there any way to create Fragment's view except rewriting onCreateView?
In the
onCreateView()method you can return the view of your fragment as follows :