Questions tagged [android-scroll]

195 questions
192
votes
18 answers

Recyclerview inside ScrollView not scrolling smoothly

For my app I am using a RecyclerView inside a ScrollView where the RecyclerView has a height based on its content using this library. Scrolling is working but it's not working smoothly when I scroll over the RecyclerView. When I scroll over the…
90
votes
13 answers

Disable scrolling in webview?

Until now I have been an iPhone developer only and now I have decided to give Android a whirl. Something I haven't been able to figure out on Android is how to programmatically prevent scrolling in a WebView? Something similar to iPhones prevention…
Jake Sankey
  • 4,977
  • 12
  • 39
  • 53
48
votes
6 answers

How to do the new PlayStore parallax effect

Does anyone know how can I achieve the new parallax scrolling effect - you can see the effect when you open an app on the PlayStore and try to scroll down, the content goes over the top image. How can I achieve that?
30
votes
2 answers

Where does Android View.scrollTo(x, y) scroll to?

scrollTo(int x, int y) says: x the x position to scroll to y the y position to scroll to onScrollChanged(int l, int t, int oldl, int oldt) says: l Current horizontal scroll origin. t Current vertical scroll origin. What I would like to know and…
slybloty
  • 6,346
  • 6
  • 49
  • 70
23
votes
3 answers

How to Hide ActionBar/Toolbar While Scrolling Down in Webview

In Google chrome and play store. the app can hide the actionbar while scrolling and allows the user to Browse conveniently. Please Help me to do like this. I've used onTouchListener for webview it doesn't works. mWebView.setOnTouchListener(new…
18
votes
2 answers

Check if items are completely visible in the RecyclerView

I'm trying to check if some specific items are visible in the RecyclerView; But I couldn't implement that. Please help me to determine if my items are completely visible in the RecyclerView. mrecylerView.addOnScrollListener(new…
Alex
  • 1,623
  • 1
  • 24
  • 48
15
votes
2 answers

Spinner scrolls to top when onLongPress or scrolling slowly

I have a spinner with a LOOONG list of items. What I noticed is that whenever I try to scroll the spinner items SLOWLY, it suddenly takes me back to the top of the spinner selection. I'm just using a standard Spinner with a simple ArrayAdapter. It's…
momoja
  • 938
  • 9
  • 23
14
votes
10 answers

How to scroll ListView to the bottom?

I though this would be a simple task, but apparently there is no way to scroll listview to the bottom. All solutions that I found are using variations of setSelection(lastItem) method which only sets selection to last item, but does not scrolls to…
Sver
  • 3,349
  • 6
  • 32
  • 53
14
votes
1 answer

Gridview onScroll method gets called always, without user scroll

I have a customized gridview where i'm checking onScroll method to find the end of the list. If the scroll reaches the end of the list, it will again add few elements in to the list. gridview.setOnScrollListener(new OnScrollListener() { …
hacker
  • 8,919
  • 12
  • 62
  • 108
13
votes
5 answers

How do I completely prevent a TextView from scrolling?

I have a TextView with a lot of text. This TextView has maxLines set, so it only shows the first 8 or so lines. I also have a "Read More" button so I handle expanding the TextView on my own. My problem is that sometimes the TextView scrolls a little…
user377628
10
votes
3 answers

list view position is getting changed when scrolling on android

I have list view [text view and check box controlls] with more data. I will choose the item from list view and display the selected items in the next activity. My problem is, for the example if I choose 20th and 25th item in the list view it will…
M.A.Murali
  • 9,988
  • 36
  • 105
  • 182
10
votes
2 answers

Understanding how to use OverScroller class

I'm looking into adding overscrolling (not the color changing) into my project, but even after reading the API docs and several questions on here I still don't really understand what I need to do to get it to work. According to the API doc for…
9
votes
5 answers

How to make AppBarLayout to completely disappear with windowTranslucentStatus set to true

I'm developing an Android app using the new design library. I would like to create a similar scrolling effect that is used in the new Google Photos app. I would like the AppBarLayout to scroll off of screen completely so that the recycler view would…
9
votes
1 answer

Android Scrolling Effect (Google I/O app)

I'm trying to reproduce the effect of both versions of the Google I/O 2014 app, the first release one that fade while scrolling, and the updated one that stretch when gets near the toolbar I downloaded the source of the app but this effect ins't on…
8
votes
1 answer

How to prevent LazyColumn from autoscrolling if the first item was moved

I use Jetpack Compose UI to build a simple TODO app. The idea is to have a list of tasks that could be checked or unchecked, and checked tasks should go to the end of the list. Everything is working fine except when I check the first visible item on…
1
2 3
12 13