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

On Fri, Oct 2, 2009 at 7:16 AM, Marco Nelissen <marc...@android.com> wrote:
>
> On Fri, Oct 2, 2009 at 12:54 AM, Gavin Bong <gavin.emp...@gmail.com> wrote:
>>
>> In the android Launcher app, Workspace.java accesses the mScrollX
>> member variable.
>>
>> http://www.google.com/codesearch/p?hl=fr&sa=N&cd=2&ct=rc#4r7JaNM0EqE/src/com/android/launcher/Workspace.java&q=computeScroll
>>
>> However it looks like mScrollX is not accessible to my ViewGroup
>> subclass.
>>
>> Eclipse is marking it as unresolved().
>
> 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.
>
> >
>



-- 
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

--~--~---------~--~----~------------~-------~--~----~
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