10,729 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
0
answers
49
views
ViewPager2 stuck between two fragments
I'm using ViewPager2 with Fragment to load content. The ViewPager2 uses an adapter that is a subclass of FragmentStateAdapter. After rotating the screen orientation, the ViewPager2 ends up stuck ...
0
votes
0
answers
53
views
how to make a dynamic bi-directional adapter for ViewPager2 in android
I am trying to make it possible for my users to click a post and scroll both up and down to newer/older posts and while scrolling down to older post is working just fine, when trying to implement ...
0
votes
0
answers
29
views
How to get horizontal x offset of recyclerview like ViewPager
I am trying to get the horizontal offset of a recyclerView on scrolled like ViewPager does within onPageScrolled. This returns a "Value from [0, 1) indicating the offset from the page at position....
0
votes
0
answers
37
views
Card Slider fragment within a fragment
I am completely new to Android development, and this question might seem silly, but I am trying to implement a card slider inside a fragment in Android. My goal is to have cards slide smoothly based ...
0
votes
2
answers
64
views
Close Android ViewPager from the adapter
I have a view pager set up and running exactly how I want it to. Once the user is done swiping through the images and data, I need to close/exit the view/viewpager. I put a button on the View that ...
4
votes
1
answer
965
views
How to add animation when removing an item in HorizontalPager in Jetpack Compose
I have an HorizontalPager in Compose and users are able to remove any item of Pager. When the user removes any item i want other elements move to empty place with an animation.
This is actually a ...
0
votes
1
answer
27
views
Android:Using ViewPager + Fragment method, how to solve off-screen Fragment participation RenderThread drawing?
Android Using the ViewPager + Fragment method, if Fragment1 has been opened and then cut to Fragment2, then Fragment1 is cached off-screen, it is not visible on the screen, but RenderThread will still ...
2
votes
1
answer
67
views
How make ViewPager work with Bottom Navigation tab in kotlin project
I have some issue in order to make ViewPager work as nested navigation part with Bottom Navigation Tab in android Kotlin
this is my code :
MainActivity.kt
class MainActivity : AppCompatActivity() {
...
1
vote
1
answer
119
views
Viewpager2 add item at 0th position scrolling issue
After adding an item at the 0th position on Viewpager2, the item does not scroll/add correctly to the view and shows the current view again after scrolling. The main initial item is not visible after ...
0
votes
1
answer
105
views
Android app very slow loading with multiple fragments in view pager
[![enter image description here][1]][1]I am getting crazy. My app has view pager , with 6 fragments. Each fragments has sub-fragments into another viewapager ( ~ 4 fragments for each main fragment). ...
0
votes
0
answers
30
views
Android - Data fetched from Firebase is not added to the list
I have a fragment in Kotlin and I am trying to get data from Firebase. I already get data from Firebase but the code does not works when it comes to add datas to "myPetsList" list. Here is ...
-1
votes
1
answer
53
views
Why does my ViewPager not show anything when i add a scrollview?
I have a frame layout that wants to fill 50% of the screen reso, then a tablayout below and a viewpager with 3 different fragment layouts based on the tabs. The tabs/viewpager works and shows the ...
0
votes
1
answer
398
views
Android View Pager2 horizontal carousel
I have a basic carousel logic, set in ViewPager2.PageTransformer I can observe previous and next views, also have applied scaling.
But I need to improve this logic, when it's the first item in the ...
2
votes
0
answers
261
views
Jetpack compose Horizontal Pager content scroll effect is not smooth
I'm trying to create a cover flow carousel effect in Android using jetpack compose like in the image below.
Image
I almost got the result. But the scroll animations are not smooth.I used translationX ...
1
vote
0
answers
43
views
Clickable element does not bring nested scroll to parent Bottomsheet behavior
My issue is the following :
I have a NestedScrollView with Bottomsheetbehavior, inside it, there is a viewpager.
The viewpager shows a fragment that contains clickable and non clickable elements.
Non ...