[android-developers] Re: protected member variable mScrollX not accessible to subclasses of ViewGroup

2009-10-04 Thread Gavin Bong
Thanks. scrollTo() solved it for me. On 2 oct, 23:35, Romain Guy romain...@google.com wrote: mScrollX is not part of the public API. Use getScrollX() and scrollBy()/scrollTo() to change it. --~--~-~--~~~---~--~~ You received this message because you are

[android-developers] Re: protected member variable mScrollX not accessible to subclasses of ViewGroup

2009-10-04 Thread Gavin Bong
mScrollX is a protected member of View, so should be accessible to any subclass. It should be but eclipse is flagging it. I presume one of Android's eclipse Builders are flagging it. Regards, G --~--~-~--~~~---~--~~ You received this message because you are

[android-developers] Re: protected member variable mScrollX not accessible to subclasses of ViewGroup

2009-10-02 Thread Marco Nelissen
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=frsa=Ncd=2ct=rc#4r7JaNM0EqE/src/com/android/launcher/Workspace.javaq=computeScroll However it

[android-developers] Re: protected member variable mScrollX not accessible to subclasses of ViewGroup

2009-10-02 Thread Romain Guy
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