Hiding Status Bar and Action Bar


I was trying to fiddle with CrimeCameraFragment to achieve the same thing. Turns out you can in fact hide the Action Bar and Status Bar from CrimeCameraFragment using the following code:

Action bar:

Status Bar:
View v = inflater.inflate(R.layout.fragment_crime_camera, parent, false);

I included these lines of code in the onCreateView method defined in the fragment.