Advertisement

TrimwebsolutionsTrimwebsolutions

Problem and Solutions

bottom navigation view doesnt shows fargment unless double click in android studio ?

By M.K. Verma · 4 May 2022

bottom navigation view doesnt shows fargment unless double click in android studio ?

Instead of setOnItemReselectedListener you should use setOnItemSelectedListener to avoid "double-clicking".

But you still have to add initial fragment to FragmentContainerView. For example, in onCreate() you can call your replaceFragment() with the fragment that you need to be shown at first.