I’m attempting to recompile the Launcher2 (Gingerbread) application, so that i can modify it.
However, I get a fair few errors (120ish), namely:
mLeft, mTop, mBottom, mRight, mParent, mContext cannot be resolved to a variable.
These come from (what I can see anyway), private members of the “TextView” widget.
Is there any way to access these private members, or would I need to do some other magic to get this working?
Cheers!
These refer to private/protected members of the
Viewand related classes. Lots of them have getters/setters, for instance all of the above (if they are just getting the value) could be replaced with thegetLeft(),getTop(),getBottom(),getRight()andgetContext()methods of the View class.
Some of them though, may not have public ways to access them. In that case you can either: