android - Overridden Class Only Offers Static Methods -
i have class overrides textview if try use of member functions of either class or textview error message in eclipse stating "cannot make static reference non-static method ##member function## type view". ##member function## method calling i.e. setlayoutparams(viewgroup.layoutparams). if in suggestions dialog static methods offered.
i have tried cutting class down too;
import android.widget.textview; public class myclass extends textview { public myclass(context context) { super(context); } }
but still same errors.
thanks in advance,
mark
you're doing textview.method() calls instead of textview.method() textview instance of textview. error not match post title @ -- it's opposite.
Comments
Post a Comment