Hiding Status Bar and Action Bar


#1

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:
getActivity().getActionBar().hide();

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

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