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 ( & lt; String & gt;

) you are the supply Array ( ListViewItem [] ) must match the data type

most likely, you should:

    < Li>

    call it a aradhyapter & lt; ListViewItem & gt; << Li>

  1. private ListViewItem [] objects Remove , because it will come into unnecessary trouble you - getItem () use the array Suprcls of

the most likely, you need private final full processing resources , Because it is not possible that you are using it, though I can not exclude it.


Comments

Popular posts from this blog

winforms - C# Form - Property Change -

java - Messages from .properties file do not display UTF-8 characters -

javascript - amcharts makechart not working -