0

I was building a Android project when I got the errors of 'cannot be resolved to a variable' for
mScrollX, mScrollY, mRight, mLeft, mTop, mGroupFlags etc.
The class that had this error was extending ViewGroup. As far as I know these variables are either protected variables of View or ViewGroup so they should be accessible to the subclasses.
What seems to be the problem here?

yadav_vi
  • 1,269
  • 3
  • 14
  • 45
  • can u post class here so that we can help you – Nand Oct 29 '13 at 11:20
  • Yes, it seems that the [question](http://stackoverflow.com/questions/4916215/protected-fields-not-visible-to-subclasses) you mentioned is similar to that of mine. However, if I were to not use these, are there some methods that I could call instead? – yadav_vi Oct 29 '13 at 11:57

0 Answers0