how to maintain the speed of scroller?


I have a problem while using the scroller in my application.

I have used the scroller but it is not working properly as it is not able to maintain a consistent speed while automatically scrolling. The speed of the text is getting slower with time as the text moves upward.

Here is the code that I used for this purpose:

length = prompt_text.getLineCount(); Log.d("length",""+length); prompt_text.setScroller(scroll); scroll.startScroll(0,0,0,10 * length, 100000 / speedAmount);


Have you tried setting up the Scroller interpolator as a LinearInterpolator? <a href="http://developer.android.com/reference/android/widget/Scroller.html#Scroller(android.content.Context,%20android.view.animation.Interpolator" rel="nofollow">http://developer.android.com/reference/android/widget/Scroller.html#Scroller(android.content.Context,%20android.view.animation.Interpolator</a>)


yourScroller = new Scroller(yourContext, new LinearInterpolator());


  • Core Graphics coordinate system
  • Ipython Notebook: how to run multiple cells?
  • Why do some Matlab class methods require “apparently” unnecessary output argument
  • NSScrollView scroll downward when resizing?
  • Webdriver Xpath Performance
  • Why are Pickle files in Pickle protocol 4 twice as large as those in protocol 3 without having any g
  • How do I get sikuli to wait until the mouse pointer changes from “busy” to “not busy?”
  • How to hide the cursor in windows when dragging and dropping (possibly in python, or another languag
  • OpenMP for dependent variables
  • Radio button show hover between two radio button using jquery
  • How to call MoveDataTableCursor in a web test plugin to go through a limited set of rows in a table?
  • Classic ASP URL Rewriting
  • Use tryCatch within R loop
  • converter json to two dimensional array
  • Getting the scrolling offset when storing coordinates
  • Can I read an iPhone beacon with Windows.Devices.Bluetooth.Advertisement.BluetoothLEManufacturerData
  • Ajax Upload File: $_FILES is empty but files exists in request header
  • Appending Character to Character Array In C
  • How to convert workspace coordinates to screen coordinates?
  • How can I extract results of aggregate queries in slick?
  • Declaring variable dynamically in VB.net
  • How do I alternate colors in Flat List (React Native)
  • DotNetZip - Calculate final zip size before calling Save(stream)
  • AES padding and writing the ciphertext to a disk file
  • How to recover from a Spring Social ExpiredAuthorizationException
  • Does CUDA 5 support STL or THRUST inside the device code?
  • retrieve vertices with no linked edge in arangodb
  • AngularJs get employee from factory
  • Proper way to use connect-multiparty with express.js?
  • Acquiring multiple attributes from .xml file in c#
  • What are the advantages and disadvantages of reading an entire file into a single String as opposed
  • Why joiner is not used after Sequence generator or Update statergy
  • FormattedException instead of throw new Exception(string.Format(…)) in .NET
  • How to CLICK on IE download dialog box i.e.(Open, Save, Save As…)
  • Change div Background jquery
  • Can Visual Studio XAML designer handle font family names with spaces as a resource?
  • apache spark aggregate function using min value
  • How can I remove ASP.NET Designer.cs files?
  • Are Kotlin's Float, Int etc optimised to built-in types in the JVM? [duplicate]
  • java string with new operator and a literal