Skip to main content
added 6 characters in body
Source Link
user1053691
  • 921
  • 1
  • 7
  • 4

I'm using a ScrollView in Android and where the visible portion of the ViewScrollView is the same size as one of the cells inside the Scrollview. Every "cell" is the same height. So what I am trying to do is snap into position after the ScrollView has been scrolled.

Currently I am detecting when the user has touched the ScrollView and when they've started scrolling and working it out from there, but it is quite buggy. It also needs to work when the user just flicks it and it scrolls and then decelerates.

On iPhone there is a function that is something like didDecelerate and there I can do any code I want when the ScrollView has finished scrolling. Is there such a thing with Android? Or is there some code I could look at to figure out a better way of doing it?

I've looked over the Android docs and could not find anything like that.

I'm using a ScrollView in Android and where the visible portion of the View is the same size as one of the cells inside the Scrollview. Every "cell" is the same height. So what I am trying to do is snap into position after the ScrollView has been scrolled.

Currently I am detecting when the user has touched the ScrollView and when they've started scrolling and working it out from there, but it is quite buggy. It also needs to work when the user just flicks it and it scrolls and then decelerates.

On iPhone there is a function that is something like didDecelerate and there I can do any code I want when the ScrollView has finished scrolling. Is there such a thing with Android? Or is there some code I could look at to figure out a better way of doing it?

I've looked over the Android docs and could not find anything like that.

I'm using a ScrollView in Android and where the visible portion of the ScrollView is the same size as one of the cells inside the Scrollview. Every "cell" is the same height. So what I am trying to do is snap into position after the ScrollView has been scrolled.

Currently I am detecting when the user has touched the ScrollView and when they've started scrolling and working it out from there, but it is quite buggy. It also needs to work when the user just flicks it and it scrolls and then decelerates.

On iPhone there is a function that is something like didDecelerate and there I can do any code I want when the ScrollView has finished scrolling. Is there such a thing with Android? Or is there some code I could look at to figure out a better way of doing it?

I've looked over the Android docs and could not find anything like that.

I'm using a ScrollViewScrollView in androidAndroid and where the visible portion of the viewView is the same size as one of the cells inside the scrollviewScrollview. Every "cell" is the same height. So what I am trying to do is snap into position after the scroll viewScrollView has been scrolled.

Currently I am detecting when the user has touched the scroll viewScrollView and when they've started scrolling and working it out from there, but it is quite buggy. It also needs to work when the user just flicks it and it scrolls and then decelerates.

On iPhone there is a function that is something like "didDecelerate"didDecelerate and in there I can do any code I want to happen when the scroll viewScrollView has finished scrolling. Is there such a thing with Android? Or is there some code I could look at to figure out a better way of doing it?

I've looked over the Android docs and could not find anything like that.

I'm using a ScrollView in android and where the visible portion of the view is the same size as one of the cells inside the scrollview. Every "cell" is the same height. So what I am trying to do is snap into position after the scroll view has been scrolled.

Currently I am detecting when the user has touched the scroll view and when they've started scrolling and working it out from there, but it is quite buggy. It also needs to work when the user just flicks it and it scrolls and then decelerates.

On iPhone there is a function that is something like "didDecelerate" and in there I can do any code I want to happen when the scroll view has finished scrolling. Is there such a thing with Android? Or is there some code I could look at to figure out a better way of doing it?

I've looked over the Android docs and could not find anything like that.

I'm using a ScrollView in Android and where the visible portion of the View is the same size as one of the cells inside the Scrollview. Every "cell" is the same height. So what I am trying to do is snap into position after the ScrollView has been scrolled.

Currently I am detecting when the user has touched the ScrollView and when they've started scrolling and working it out from there, but it is quite buggy. It also needs to work when the user just flicks it and it scrolls and then decelerates.

On iPhone there is a function that is something like didDecelerate and there I can do any code I want when the ScrollView has finished scrolling. Is there such a thing with Android? Or is there some code I could look at to figure out a better way of doing it?

I've looked over the Android docs and could not find anything like that.

deleted 11 characters in body
Source Link
fredley
  • 34.1k
  • 46
  • 151
  • 242

I'm using a ScrollView in android and where the visible portion of the view is the same size as one of the cells inside the scrollview. Every "cell" is the same height. So what I am trying to do is snap into position after the scroll view has been scrolled.

Currently I am detecting when the user has touched the scroll view and when they've started scrolling and working it out from there, but it is quite buggy. It also needs to work when the user just flicks it and it scrolls and then decelerates.

On iPhone there is a function that is something like "didDecelerate" and in there I can do any code I want to happen when the scroll view has finished scrolling. Is there such a thing with Android? Or is there some code I could look at to figure out a better way of doing it?

I've looked over the Android docs and could not find anything like that.

Thanks!

I'm using a ScrollView in android and where the visible portion of the view is the same size as one of the cells inside the scrollview. Every "cell" is the same height. So what I am trying to do is snap into position after the scroll view has been scrolled.

Currently I am detecting when the user has touched the scroll view and when they've started scrolling and working it out from there, but it is quite buggy. It also needs to work when the user just flicks it and it scrolls and then decelerates.

On iPhone there is a function that is something like "didDecelerate" and in there I can do any code I want to happen when the scroll view has finished scrolling. Is there such a thing with Android? Or is there some code I could look at to figure out a better way of doing it?

I've looked over the Android docs and could not find anything like that.

Thanks!

I'm using a ScrollView in android and where the visible portion of the view is the same size as one of the cells inside the scrollview. Every "cell" is the same height. So what I am trying to do is snap into position after the scroll view has been scrolled.

Currently I am detecting when the user has touched the scroll view and when they've started scrolling and working it out from there, but it is quite buggy. It also needs to work when the user just flicks it and it scrolls and then decelerates.

On iPhone there is a function that is something like "didDecelerate" and in there I can do any code I want to happen when the scroll view has finished scrolling. Is there such a thing with Android? Or is there some code I could look at to figure out a better way of doing it?

I've looked over the Android docs and could not find anything like that.

Source Link
user1053691
  • 921
  • 1
  • 7
  • 4
Loading