How to show the alert dialog for the empty list view when there are no listview items. Please find the below image having three text fields. I have to implement the empty list view when there are no records/unmatched records in the list.
The list view is implemented as below:
ListView empListView;
empListView = (ListView)findViewById(R.id.list1 );
I have to show the alert dialog box for the empListView. Please help me with the samplecode/links.
CursorAdapter adaptr = new MyCursorAdapter( getApplicationContext(), R.layout.listview, cdata, fields, names);where cdata is a Cursor to return values from query, fields are the list view entities and names is an array to store the listview items.