How am I supposed to hide/auto-hide the android bottom navigation bar using Styles in android themes?

Viewed 20

My current theme -

<style name="Theme.AppCompat.Light.NoActionBar.FullScreen" parent="@style/Theme.AppCompat.Light.NoActionBar">
    <item name="android:windowNoTitle">true</item>
    <item name="android:windowActionBar">false</item>
    <item name="android:windowFullscreen">true</item>
    <item name="android:windowTranslucentNavigation">true</item>
    <item name="android:windowContentOverlay">@null</item>
</style>

My activity manifest -

<activity
    android:name=".ui_elements.activity.StreamActivity"
    android:configChanges="orientation|keyboardHidden|screenSize"
    android:exported="false"
    android:label="@string/title_activity_stream"
    android:screenOrientation="landscape"
    android:theme="@style/Theme.AppCompat.Light.NoActionBar.FullScreen" />

The issue I am facing -

Image Description


The only thing I haven't been able to hide is the navigation bar. The closest I came was setting android:windowTranslucentNavigation to true. uptil now I was achieving this using code which had problems of its own. So, now I want it to be achieved using styles. Any help would be appreciated.

0 Answers
Related