From KeyboardView.java:
*private *Bitmap mBuffer;
*private *boolean mKeyboardChanged;
So they're there, but you can't use them. Has nothing to do with @Override.
-- Kostya
21.03.2011 22:31, trans ?????:
Hi-- I am not very experienced with Java, and I am confused about
overriding a method. I am trying to override the OnBufferDraw() method
by extending KeyboardView, like this:
public class PhoneticKeyboardView extends KeyboardView {
@Override
private void onBufferDraw() {
if (mBuffer == null || mKeyboardChanged) { ...
But when I compile it I get an error:
cannot find symbol
[javac] symbol : variable mBuffer
[javac] location: class
com.tabcomputing.android.zenboard.PhoneticKeyboardView
[javac] if (mBuffer == null || mKeyboardChanged) {
[javac] ^
Which I don't understand b/c mBuffer is defined in KeyboardView. What
am I doing wrong. Surely I do not have to redefine every class
variable of the superclass?
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--
Kostya Vasilyev -- http://kmansoft.wordpress.com
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en