'View: requestLayout() improperly called by ViewPager
When I'm trying to set the adapter to the viewpager like below,
binding.viewPagerNews.adapter = adapter
Logcat prints the below logs and the viewpager content(child fragment is having recycler view) is not visible.
View: requestLayout() improperly called by androidx.viewpager.widget.ViewPager{5a6e195 VFED..... ......ID 0,0-720,550 #7f0a03ec app:id/viewPagerNews} during layout: running second layout pass
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
