oneHamidreza / MeowBottomNavigation

Android Meow Bottm Navigation
http://etebarian.com
1.33k stars 198 forks source link

The first page doesn't show any thing #104

Open alikazemiinfo opened 2 years ago

alikazemiinfo commented 2 years ago

In the first time run app i set that id 3 which contains home fragment loaded but it doesn't show anything and it just keep showing null page and after clicking the other id and reselect the id 3 it shows the content! What should I do?

You can see my problem video by this link [https://anonfiles.com/eb8au259y3/Screenrecorder-2022-08-26-01-35-40-512_mp4]()

B3DTechnologies commented 2 years ago

Hi, I was also facing the same thing. I found a workaround. After setting
bottomNavigation.show(1, true);

We can manually set the fragment for first time. getSupportFragmentManager().beginTransaction().replace(R.id.fragment_container, new Screen1Fragment()).commit(); After that we can do bottomNavigation.setOnClickMenuListener{..}