navigation-keep-fragment-sample icon indicating copy to clipboard operation
navigation-keep-fragment-sample copied to clipboard

layout resize to 0 width 0 height after tab navigation

Open daksh-huma opened this issue 4 years ago • 0 comments

When I change the tab from bottom navigation view, I think the layout is shrinking to 0 width and 0 height.

I found out when I print the view field in log.

Here is how I inflated it val v = inflater.inflate(R.layout.fragment_home, container, false)

And here is the log value before and after navigation Before android.widget.FrameLayout{27c48ff V.E...... ........ 0,0-1080,1731 #7f09008b app:id/fl}

After android.widget.FrameLayout{560015a V.E...... ......I. 0,0-0,0 #7f09008b app:id/fl}

I have all the content data but the view is missing. Can you please help? Thank you.

daksh-huma avatar Apr 03 '20 14:04 daksh-huma