I want to display a custom dialog that have a listview inside it. First take a look on my code below.
Dialog:
protected void onPostExecute(String file_ur
Inflate your view and use the object returned by the inflater to look for the ListView
inside the layout
View view = inflater.inflate(R.layout.dialog_add, null)
ListView lv = (ListView) view.findViewById(R.id.lvAddDialog);
ListviewContactAdapter adapter = new ListviewContactAdapter(getActivity(), listContact);
lv.setAdapter(adapter);
builder.setView(view);