Now I\'ve got this fragment which i want to use setContentView with but so far i cant find how. You can see my case in the code below, im not trying to inflate a layout, im
You dont call setContentView in fragments, in fact you need to return a View from onCreateView.
setContentView
View
onCreateView
Try replacing:
setContentView(new SampleView(this));
With this:
return new SampleView(this);