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. Extending contacts

I'm trying to see how extra information can be attached to contacts
Looking at the SDK reference, I stumble upon the Contacts.Extensions
ions.html) and Contacts.People.Extensions
.Extensions.html) classes. Sadly I can't find any article about what
theses classes are for and how to use them.
My goal is to add a few extra fields to the contacts entries which do
not fit in any of the current available field types (emails, im
accounts, phone numbers, postal addresses).
Is there a way to achieve this?


2. How to get device details

I want to write some application in that i want to print device details like
manufacturer,model ,userid etc..
Is this possible in android?
If so what are the apis which gives this information


3. AvoidXferMode

4. Showing the map view before the direction list on android device.

5. play video bypass surfaceflinger

6. Sample or Tutorial in using OpenGL in a "Live Wallpaper" in SDK 2.1?

7. Problem with ADP sensors