and I now have that fixed too :)
I added/changed this
LayoutInflater vi = (LayoutInflater) getContext().getSystemService
(Context.LAYOUT_INFLATER_SERVICE);
On Nov 5, 4:28 pm, tatman matt.raf...@gmail.com wrote:
btw Im missing an import in the post: import android.view.ViewGroup;
That fixes the override error.
I now have different compile error. It says getSystemService is
undefined.
Any thoughts?
On Nov 5, 4:17 pm, tatman matt.raf...@gmail.com wrote:
I'm trying to create my own ArrayAdapter. I'm missing something. I
cannot get the code to compile. The documentation says I need to
override getView. But the compiler isn't seeing getView as a method
defined in the super class. What am I missing?
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.ArrayAdapter;
import android.widget.TextView;
public class Stock
{
// etc
}
public class StockAdapter extends ArrayAdapterStock
{
//
//
public StockAdapter(Context context, int textViewResourceId, Stock[]
objects)
{
super(context, textViewResourceId, objects);
}
@Override
public View getView(int position, View convertView, ViewGroup
parent)
{
}
}
--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en