In my application, I use listview and configured the associated array adapter, expanding the array adapter standard. However, inside the extended adapter, I cannot declare the viewer as a static inner class. Eclipse continues to give the error that "static types can only be declared at the static or top level." Here is the code:
public class IconicAdapter extends ArrayAdapter<String> { public static class ViewHolder { public TextView text; public ImageView image; } public IconicAdapter() { super(MainActivity.this,R.layout.row,values);
Any suggestion?
source share