android - How to set EmptyView in ListActivity -
i display empty view "no items found
" in listactivity if empty. have searched more on sites , suggestions setemptyview method of listview only. can please guide listactivity?
i have found solution below
textview emptyview = new textview(this); emptyview.settext("empty list"); emptyview.settextsize(25); listview currentlistview = getlistview(); if(listadapter.size()==0) ((viewgroup)currentlistview.getparent()).addview(emptyview);
i have search more solution... ;)
Comments
Post a Comment