[android-developers] Re: protected member variable mScrollX not accessible to subclasses of ViewGroup
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 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 -~--~~~~--~~--~--~---
[android-developers] Re: protected member variable mScrollX not accessible to subclasses of ViewGroup
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 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 -~--~~~~--~~--~--~---
[android-developers] Re: protected member variable mScrollX not accessible to subclasses of ViewGroup
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 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. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
[android-developers] Re: protected member variable mScrollX not accessible to subclasses of ViewGroup
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=frsa=Ncd=2ct=rc#4r7JaNM0EqE/src/com/android/launcher/Workspace.javaq=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 -~--~~~~--~~--~--~---