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

Popular posts from this blog

c# - how to write client side events functions for the combobox items -

exception - Python, pyPdf OCR error: pyPdf.utils.PdfReadError: EOF marker not found -