Open daksh-huma opened 4 years ago
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)
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}
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}
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.
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.