python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
Android ViewPager2: Not being able to make ViewPager2 width adjust to its content
This is my main -non scrolling- content:
<layout xmlns:android="http://schemas.android.com/apk/res/android">
<data>
</data>
<RelativeLayout
androi...
Diego Perez
Votes: 0
Answers: 1
OffscreenPageLimit behaviour for ViewPager from Accompanist
I am using HorizontalViewPager from Accompanist to show an image in each page of the viewpager. I am loading images with Coil. Here's the code:
val pagerState = rememberPagerState()
HorizontalPager(c...
SpiralDev
Votes: 0
Answers: 0
can't navigate by Navigation action from viewpager fragment
I have a fragment named ViewPagerFragment which comes to the display when I select a menu in bottomNavigationView. It becomes the currentDestination of navHostFragment.
In the viewPagerFragment there ...
Quraishi sazid
Votes: 0
Answers: 1
ViewPager2 not working with RecyclerView.Adapter
ImagesViewerAdapter.java
public class ImagesViewerAdapter extends RecyclerView.Adapter<ImagesViewerAdapter.VH> {
private final Context context;
private final String[] images;
publi...
Taha Sami
Votes: 0
Answers: 1