The requirement is

1) Status Bar & Navigation bar should be transclucent. - Achieved

2) Bottom Content should be adjustable when hide & show navigation bar. - Achieved

3) Navigation Bar background color should be alpha and change on screen wise. - Pending

I have applied below style

<!-- Base application theme. -->
<style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar">
    <!-- Customize your theme here. -->
    <item name="colorPrimary">@color/colorPrimary</item>
    <item name="colorPrimaryDark">@color/colorPrimaryDark</item>
    <item name="colorAccent">@color/colorAccent</item>
    <item name="android:windowTranslucentNavigation">true</item>
    <item name="android:windowTranslucentStatus">true</item>
    <item name="android:windowDrawsSystemBarBackgrounds">true</item>
    <item name="android:statusBarColor">@android:color/transparent</item>
</style>

With this theme, I have also applied android:fitsSystemWindows="true" to root component (Ex. RelativeLayout) in the XML file.

I expect output to like It should change the Navigation Bar Background Color with Alpha. But It is not.

Any help would be appreciate.

Related posts

Recent Viewed