python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
How can I tell the adapter ViewPager2 to redraw elements?
My app contains viewpager and tablayout. It requests data from the server, sorts and gives each tab its own set of information. I don't want to have a request to the network every time I select a tab,...

Maksimka
Votes: 0
Answers: 0
ViewPager2 setCurrentItem bug workaround?
This reported bug is causing me problems;
https://issuetracker.google.com/issues/183847283
When combined with FragmentStateAdapter, ViewPager2.setCurrentItem doesn't always work. The TabLayout correct...
brisdeveloper
Votes: 0
Answers: 2
IllegalStateException on ViewPager2 with TabLayoutMediator
Hit there!
Recently I am getting some crashes on my app with an implementation of ViewPager2 from this line:
com.google.android.material.tabs.TabLayoutMediator$ViewPagerOnTabSelectedListener.onTabSele...
Markus
Votes: 0
Answers: 0
Add Fragment Over ViewPager2 (FragmentManager is already executing transactions)
I am using viewpager2 in my app through MainActivity.
I want to add a new fragment over that viewPager, However,when trying to do so I am getting an error:
Caused by: java.lang.IllegalStateException: ...
HoLoGram
Votes: 0
Answers: 1