https://kotlinlang.org logo
#android
Title
# android
a

Andrey B.

01/24/2020, 7:14 AM
Hello everyone! I have some problem which really causes me headache and trying to find a solution for this. I also created a question on StackOverflow but it seems not getting any attention. So maybe someone can help me with it? It would be really kind. https://stackoverflow.com/questions/59888640/android-hiding-revealing-bottom-navigation-view-causes-lost-of-scroll-state
b

bhatnagarm

01/24/2020, 10:43 AM
Hi @Andrey B. check SO I have commented an answer to your question. I assume it should work.
a

Andrey B.

01/24/2020, 10:43 AM
I will take a look at it! Thanks!
Sadly I haven't post the whole layout file but I did now. So maybe you can take a look again on it @bhatnagarm?
b

bhatnagarm

01/24/2020, 3:40 PM
that's fine, see the only thing what I think could be causing a issue would be the parent RelativeLayout
Not very sure but you can give it a try by replacing parent RelativeLayout with FrameLayout
h

Hitender Pannu

01/24/2020, 5:56 PM
@Andrey B. Did you try checking the fragment lifecycle callbacks? I don't think they should get triggered but just want to make sure its not cause by something else
a

Andrey B.

01/27/2020, 7:47 AM
I will give it a try, thanks 🙂
2 Views