I have managed to get a fully transparent status bar but I would like a semi-transparent one instead. Below is the code I added to achieve a fully transparent status bar.
In my styles.xml I added the following:
<item name="android:windowTranslucentStatus">true</item>
<item name="android:windowTranslucentNavigation">true</item>
In my activity.xml:
android:fitsSystemWindows="true"
In the onCreate of my activity.java:
getWindow().setFlags(WindowManager.LayoutParams.FLAG_LAYOUT_NO_LIMITS, WindowManager.LayoutParams.FLAG_LAYOUT_NO_LIMITS);