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