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. Mod: Member ID-Android Tembus Angka 5000

Rekan-rekan komunitas id-android yang berbahagia, hari ini (Selasa),
09 November 2010, jumlah member (basis E-mail)  id-android tembus angka
Kalau kita flashback, bulan Desember 2009 jumlah kita masih 200 an,
dalam waktu 12 bulan jumlah member id-android sudah tembus 5000.

Semoga Komunitas ID-Android tetap bermanfaat buat semua.


Agus Hamonangan

Founder Indonesian Android Community

2. Is it a UNIT Test or an Integration test?

I'm working on a school project and I'm researching testing
possibilities for Android applications.

On this page:
Google writes about a unit test.

Is this really a unit test? A Unit test will not integrate all classes
and will not test in his context. So my opinion is it is not a Unit
Test but an Integration Test.

What do you think?


3. Failed to fetch URL:

4. Download finished with wrong size

5. Child Thread Blocking Problems

6. Hello Android

7. Android dev using the Samsung Galaxy S on OSX