protected member variable mScrollX not accessible to subclasses of ViewGroup

by Marco Nelissen » Fri, 02 Oct 2009 22:17:54 GMT


Sponsored Links
 


Does it actually fail to build, or are you just talking about the
syntax highlighting?
mScrollX is a protected member of View, so should be accessible to any subclass.

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



protected member variable mScrollX not accessible to subclasses of ViewGroup

by Romain Guy » Fri, 02 Oct 2009 23:36:36 GMT


 mScrollX is not part of the public API. Use getScrollX() and
scrollBy()/scrollTo() to change it.







-- 
Romain Guy
Android framework engineer
romain...@android.com

Note: please don't send private questions to me, as I don't have time
to provide private support.  All such questions should be posted on
public forums, where I and others can see and answer them

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


Sponsored Links


Other Threads

1. ContentResolver in a Service

I want to be able to query a ContentProvider from a Service, so my
understanding is I will need to use a ContentResolver. What I can't
seem to find is how do I get a Context that I can use to create the
ContentResolver with? Anyone know?
--~--~---------~--~----~------------~-------~--~----~

2. Will Android apps every make proper money ...

Maybe not a few years, considering how fast some companies are about to roll
out Android onto more carriers with other options for phones.  I would still
say give it some time, but it's definitely not there yet.  I'm definitely
not counting it out, yet, though.
------------------
http://andrewhays.net
http://ashays.livejournal.com

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

3. make seekbar (un)clickable depending on RadioButton

4. ListViews in tabs

5. Cursor return order

6. MapActivity cannot be resolved to a type

7. Including pre-compiled 3rd party jar files to android application & building it with source code