I'm using a tablayout with 3 fragments, each fragment has its own recyclerview. When trying to swipe from a fragment on a item the tablayout doesn't change tabs. I probably have to override a certain motionevent, but I don't know how.
I hope someone has the answer to this!
Thanks in advance.
It appears that when you are using a RelativeLayout in the layout that you are inflating the swiping part doesn't work. After changing this to a LinearLayout it solved the problem!
Related
I found a bug when using ViewPager2 (horizontal orientation), which the fragment contains a RecyclerView with GridLayoutManager (vertical orientation),
The RecyclerView with GridLayoutManager always jump-scrolls to top (1st item) when I scroll it vertically,
this issue does not exist when I change it to LinearLayoutManager
I suspect that this has something to do with bubbling onTouch event from nested recycler view, (AFAIK viewpager2 use RecyclerView)
Need help
Update: after doing research, it is may be caused by SwipeRefreshLayout wrapping my RecycleView, seems I need to extend it to something like "NestedScroll Swipe Refresh Layout"
I add a RecyclerView inside a NestedScrollView and recycler view has multiple Textinputlayout. Scrollview jumps when keyboard comes up and goes down. I have tried adjustPan and adjustResize in AndroidManifest and android:nestedScrollingEnabled="false" in xml but nothing works. Please help me to resolve this issue
Has anyone used a PlaceHolderView lib?
https://github.com/janishar/PlaceHolderView
has anyone ever come across the problem of putting a ListView or RecyclerView book inside the PlaceHolderView custom item?
need to insert a listview or recyclerview in the blank space in the image below
Exemple layout
I am having trouble with this. I've been trying to use RecyclerView to have a page boundaries like ViewPager but prove to be difficult to do. Is there a way to overcome this problem?
my question is actually exactly the same as this one: RecyclerView expandable cardView but no good solution was given, that's why I'm asking this question again.
So the problem is that when I click the last cardView, it expands but the expandable part isn't visible, I have to scroll down to see it. I tried scrollToPosition but that didn't work.
Can someone help?
Thanks in advance!