i am using a normal activity where in i have a listview. when the array is empty, how do i show an empty view? i tried using a textview with the id android:empty but it only works with listactivity. i am using a custom adapte(which extends the baseadapter class) for the listview and in the getcount() i return 0 when the array is null. But this is not working. i want to show a empty listview when i have no rows in my array. how do i achieve this?
thank you in advance.