Questions tagged [android-scroll]
195 questions
4
votes
2 answers
Two-way scrolling with RecyclerView
How do you display a list of item that is very large on one side (either horizontally / vertically), and allow it to be freely scrolled / dragged - like Google Sheets?
I've tried using a NestedScrollView with a RecyclerView, but you can only scroll…

Alvin Rusli
- 1,026
- 1
- 11
- 19
4
votes
2 answers
using onScroll in android listview
Friends I am using listview and loading contents on scroll when it reaches at the end. But I am facing error like the same url is called more than once if if scrolled fastly can anybody help me to resolve this. I have gone thro SCROLL_STATE_IDLE but…

Munchoo
- 313
- 1
- 7
- 22
4
votes
1 answer
Use smoothScrollTo in Fragment
I have following situation:
I'm using a Navigation Drawer to make the user easily navigate between different topics.
You can find a picture here:
https://drive.google.com/file/d/0B2gMUEFwlGRfSHRzVlptYmFQTXc/edit?usp=sharing
When clicking on a…

Niklas Zantner
- 182
- 2
- 16
4
votes
3 answers
List View Scroll Not Smooth
i have a custom list view, which displays users, and there photos
i retrieve the data from API, Which gives JSON Output,
My Issue is that the list view is not scrolling smoothly, it hangs for a sec and scrolls, it repeats the same till we reach the…

Robert Ray
- 127
- 2
- 2
- 6
4
votes
1 answer
How to do auto Pan (scrolling) with AChartEngine dynamic line graph along with X-axis?
I had created dynamic line graph using AChartEngine Api, which shows the changes in G-Force value. All works fine but when graph moves ahead in X-axis i have to manually scroll in X-axis to see it further, please check my image below if you are not…

Nirav Dangi
- 3,607
- 4
- 49
- 60
4
votes
1 answer
Android - HorizontalScrollView - get view in focus (or index of it)
I have a HorizontalScrollView containing a LinearLayout, which in turn contains a couple of FrameLayouts. Each FrameLayout contains the layout of a Fragment. Now I'm trying to get the view, i.e. FrameLayout, which is currently visible or in focus…

Schnodahipfe
- 1,053
- 1
- 13
- 20
3
votes
1 answer
Android Jetpack Navigation Disable Scroll Position
I have a single activity with many fragments (Using jetpack navigation). On my first fragment, i have a recyclerview. If i scroll on the first fragment and then navigate to the other fragment, the fragment retains the scroll position and i don't…

Mervin Hemaraju
- 1,921
- 2
- 22
- 71
3
votes
1 answer
Check if NestedScrollView is Scrollable
I need a function which returns a boolean if my screen is scrollable inside a NestedScrollView. I currently have a RecyclerView inside a NestedScrollView and the content of the RecyclerView is dynamic (i can add or remove items). Everytime i swipe…

Mervin Hemaraju
- 1,921
- 2
- 22
- 71
3
votes
2 answers
Android ListView scrollTo
I have a LinearLayout that contains some other views and among those a ListView.
This view is loaded from another one by clicking a button.
This button somehow specify what element in the ListView needs to be the first visible one in the list. The…

0m4r
- 1,036
- 1
- 14
- 25
3
votes
0 answers
RecyclerView inside AppBarLayout is not scrollable
I am using Material Search View. But It doesn't work when I use CoordinatorLayout as Root element and RecyclerView (SearchView - RecyclerView is child of custom view com.miguelcatalan.materialsearchview.MaterialSearchView) inside AppBarLayout.…

Amol Desai
- 872
- 1
- 9
- 17
3
votes
0 answers
Start overscroll at a given position
I would like to start the overscroll effect at given start and end positions (depoendent on the content), instead of 0 and height.
In other words: Let's say I have a ScrollView with overscroll enabled. When I scroll all the way up and y < 0, Android…

Oliver Hausler
- 4,900
- 4
- 35
- 70
3
votes
1 answer
Android: How to touch a scrollview and show its scroll bar for 2 seconds?
I'm working on a requirement that involve scrollview and textview. Clients require that normally the scroll bar is hidden but when user click (touch) the scrollview, which contain a textview, the scrollbar will appear for a short time, say 2 secs,…

Arthur Wang
- 3,118
- 4
- 21
- 29
3
votes
4 answers
How to make scroll up in list view when keyboard is appear
I would like to know that is there any way to do in android like this question. I used ListView and add the EditText in it. I got same problem as above question. I cann't find the answer in android.
Thanks.

user1156041
- 2,155
- 5
- 24
- 54
3
votes
2 answers
Listview scrolling up freezing
I have listview with custom cursoradapter. It contains few hundred of items. Scrolling down is smooth and fast but scrolling back - up is freezing all the time. I don't load image or some operation on UI thread. Only get few values from cursor and…

Martin Vandzura
- 3,047
- 1
- 31
- 63
3
votes
1 answer
Using scrollTo() in GridView
I have a GridView in an Activity and I want to scroll the GridView to a specific position using the scrollTo() method. Specifically, scroll the GridView by scrollTo() and alert a Dialog in the OnItemClickListener(), scroll back by scrollTo() in…

Eric Liu
- 31
- 3