Bottom navigation with navigation component when fragment load flickering happens


I am currently using bottom navigation with navigation component, it is working correctly but when we click on navigation item fragment is loading then flickering is happening, flicker is happen even current item selected also. It is happening when fragment is loading. My application screen background is not white when it is white no flickering is displaying i have try all available solutions.

I have change background color of google navigation sample application then also i am able to see the flicker.

If anyone have any solution please post here.


I have find solution for my problem i’m having flickering because my background color is black if i change it to white i didn’t have any flicker for that i have update theme by adding bellow lines.

    <item name="android:windowBackground">#000000</item>
    <item name="android:colorBackground">#000000</item>

By adding these lines i have avoided the flicker problem.

Answered By – YBDevi

This Answer collected from stackoverflow, is licensed under cc by-sa 2.5 , cc by-sa 3.0 and cc by-sa 4.0

Leave a Reply

(*) Required, Your email will not be published