How do I make the actionbar fully invisible but still functional. I should only see the icons I have and the title but the colour should be removed.
I tried like below:
toolbar.getBackground().setAlpha(0)
In my onCreate, but that just makes it white.
The XML code in my activity which sets the toolbar colour is here:
<android.support.design.widget.AppBarLayout android:layout_width="match_parent"
android:layout_height="wrap_content" android:theme="@style/AppTheme.AppBarOverlay">
<android.support.v7.widget.Toolbar android:id="@+id/toolbar"
android:layout_width="match_parent" android:layout_height="?attr/actionBarSize"
android:background="?attr/colorPrimary" app:popupTheme="@style/AppTheme.PopupOverlay" />
</android.support.design.widget.AppBarLayout>