android - The constructor ArrayAdapter<String>(Context, int, MainActivity.ListViewItem[]) is undefined -
I'm new to Android programming I was doing a piece along the lines of different ListView. I created a custom adapter that extends from the Surrey adapter
the public class enhances the CustomAdapter ArrayAdapter & lt; String & gt; {Public stable final integer TYPE_ODD = 0; Public stable final integer TYPE_EVEN = 1; Public stable final integer TYPE_WHITE = 2; Public stable ending end TYPE_BLACK = 3; Personal last reference references; Private final lag resource; Private list view [item]; Public CustomAdapter (Reference Reference, Intource, ListViewItem [objects]) {Super (Reference, Resources, Objects); This.context = context; This.resource = Resource; This.objects = objects; }
Eclipse shows super (context, resource, object); Line is as error "constructor Arre adapter is undefined (context, Int, Menaktivitiklistwuitm [])"
I did not know why it please help on this. Data type in angle brackets ( most likely, you should: call it a private ListViewItem [] objects Remove , because it will come into unnecessary trouble you - the most likely, you need & lt; String & gt;
ListViewItem []
) must match the data type < Li>
aradhyapter & lt; ListViewItem & gt;
<> << Li> getItem ()
use the array Suprcls of private final full processing resources
, Because it is not possible that you are using it, though I can not exclude it.
Comments
Post a Comment