Conditions: I have an Activity and I'm creating PagerAdapter extends FragmentPagerAdapter with one Fragment class. TabLayout includes 10 tabs. I have ...
Conditions: I have an Activity and I'm creating PagerAdapter extends FragmentPagerAdapter with one Fragment class. TabLayout includes 10 tabs. I have ...
I am trying to make a slider between TouchImageView and PlayerView (Exoplayer) but I am unable to catch up with certain issues that are persisting eve ...
The Elements of the project that don't work And I check if data is no null and do default submitList in the fragment. Btw here is the link to the do ...
I have a ViewPager and use it to swipe between views not Fragments . And when I give the View Pager wrap_content height , it doesn't show anything . S ...
I have a counter view which should update as user touch minus and plus buttons. I'm trying to update counter within ViewPager's adapter instantiateIt ...
I have this class for PagerAdapter: I need an event to be triggers when all pages are instantiated and ready to use. I improvised the OnAllPagesAdd ...
I want to fetch Images using Volley JSON in PagerAdapter for slider , but problem is that data fetched using JSON is reached till constructor but not ...
In my project, I have a PagerAdapter to inflate CardViews that hold text objects created by the user. On each CardView I have edit and delete buttons ...
I have this code for FragmentStatePagerAdapter.getItem(): (logd() is just a static method that calls Log.d()). But it keeps crashing with: This ...
I have a fragment that uses a FragmentPagerAdapter and loads 2 other fragments with two recycler views. I'm trying to filter the items of the recycler ...
In an existing Android App project (MVVM is used as pattern) I have found a PagerAdapter to swipe several information within this adapter: Question ...
I have custom ViewPager and PagerAdapter which is loading items inside instantiateItem. It is working fine if I initialize it for the first time with ...
I am trying to use android's view pager to dynamically load some fragments depending on the user profile type. But view-pager returns fragments based ...
I like use data binding and navigation graph. But after update androidx dependencies from androidx.navigation:navigation-fragment:2.0.0 on 2.2.0 appli ...
I have a PagerAdapter, and in instantiateItem i initialize an ExoPlayer. My question is, how do I release the player? I assume, somehow the function ...
I'm using only one fragment for my all tabs. But I couldn't pass selected tab name to my fragment, so based on that I can load my order details data. ...
i have slider with view pager. and i have adapter extends PagerAdapter. the problem is that: i don't want may slider swiping with finger. it means, i ...
I have implemented Horizontal ViewPager with Custom PagerAdapter like attached in screen. What I'm trying to achieve is to get Id of First item from l ...
I have a tablayout associated with a viewpager. Everytime I pull to refresh, currently I try to reload the entire page (calling finish and starting th ...
I 'm using FragmentPagerAdapter to adapt fragments inside viewPager. I wrote code and It's working correctly ,Here is a my code I'm calling this ad ...