Adding scrollbars in a Custom View

by Neha » Fri, 05 Mar 2010 18:15:40 GMT

Sponsored Links

I am working on adding vertical and horizontal scrollbars in a custom
drawn View. I have overridden the compute*ScrollOffset,
compute*ScrollRange, etc methods and have enabled the scrollbars by
called set*ScrollBarEnabled. However, I do not see the scrollbars in
my View, even after a call to scrollBy, which according to the
documentation calls awakenScrollbars (I assumed awakenScrollbars is
not required as the scrollbars do not auto-fade -
isScrollbarFadingEnabled returns false).
Does anyone have a sample with scrollbars in a custom view which they
can share? Or provide any pointers as to how this should be fixed?

Any help would be appreciated.


Adding scrollbars in a Custom View

by Jonas » Fri, 23 Apr 2010 08:04:53 GMT


Did you get any help with this question, I am having the same problem.
No scroll bars are displayed. I also wish to get the Y position of the
scrollbar and see if it is bigger or smaller than screen width / 2.



Sponsored Links

Other Threads

1. Automating application update listings

We've just added the ability to get updated versions of an application  
from an RSS feed to AndAppStore. This means that if you publish an RSS  
or Atom feed which links to your latest .apk you can set this up and  
we'll automatically update your app listings.

You can find more details at;



* Looking for Android Apps? - Try *

Funky Android Limited is registered in England & Wales with the
company number  6741909. The registered head office is Kemp House,
152-160 City Road, London,  EC1V 2NX, UK.

The views expressed in this email are those of the author and not
necessarily those of Funky Android Limited, it's associates, or it's


2. Does android provide SMP multicore support ?

            I am a MTech student of IIT  . I want to add SMP multicore
support in android. I want to know whether SMP multicore is already
supported by android or not ?

           If 'SMP multicore' is already supported then please let me
know . If it is not supported then I will add the SMP multicore
support in android as part of my major project (duration of project is
1 year).

Thanks  & Regards

3. Logcat View fails with "Could not create the view: For input string: "our" "

4. ViewGroup#onInterceptTouchEvent is only called once

5. Doc and Samples typos and suggestions?

6. Flash for android

7. Now ADC2 judging has begun.