ArrayList<HashMap<String, ?>> list;
f(!list.isEmpty()){
adapter = new MySimpleArrayAdapter(getActivity(),R.layout.inner_base_header_cutom, list);
listview.setAdapter(adapter);
Log.i("LIST Active", "LIST Active" + list.size());
}
public class MySimpleArrayAdapter extends ArrayAdapter<ArrayList<HashMap<String, ?>>> {
private final Context context;
private final ArrayList<HashMap<String, ?>> values;
public MySimpleArrayAdapter(Context context, int innerBaseHeaderCutom, ArrayList<HashMap<String, ?>> list) {
super(context, innerBaseHeaderCutom, list);
this.context = context;
this.values = list;
}
}
ERROR:
The constructor ArrayAdapter<ArrayList<HashMap<String,?>>>(Context, int, ArrayList<HashMap<String,?>>) is undefined
Also Cannot Remove ListView:
remove(list.get(position));
Error:
The method remove(ArrayList<HashMap<String,?>>) in the type ArrayAdapter<ArrayList<HashMap<String,?>>> is not applicable for the arguments (HashMap<String,capture#2-of ?>)
ArrayList<HashMap<String, ?>> listwhy the?. They value is not a string?. Also where do you populate the listListinsteadArrayList?