Hello everyone
I have been struggling to get scroll bars to display on a custom view.
I have gone thru the mails on this group but cant find a consistent
explanation on how this should be done. Below I am attaching an email
from Roman Guy on this topic. I have tried this approach and many
others but none have worked. I am able to scroll the content of my
custom view but have failed to display the scroll bars. Can someone
please respond. I am attaching Roman Guy's email below for reference,
in case he responds or someone else from Google does.

Thanks,
Girish Rai
-----------------------------------------------------------------------------------------------------------------
Hi,
When you create a custom view you need to do the following to support
scrollbars:
- Enable the scrollbars
- Override the various compute*ScrollOffset, compute*ScrollRange(),
etc. to
return sensible values
- Call awakenScrollbars() when you want to display the scrollbars
(this is
called by the scroll methods in View as well)
-------------------------------------------------------------------------------------------------------------

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to