Adding scrollbars in a Custom View

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


Sponsored Links
 Hi,

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.
Thanks!

--



Adding scrollbars in a Custom View

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


 Hi,

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.

BR
Jonas




--


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; 
http://andappstore.com/AndroidApplications/feeds.jsp

Enjoy,

Al.
--

* Looking for Android Apps? - Try http://andappstore.com/ *

======
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
subsidiaries.


--~--~---------~--~----~------------~-------~--~----~

2. Does android provide SMP multicore support ?

Hi ALL,
            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
Tapas.
--~--~---------~--~----~------------~-------~--~----~
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: 

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.