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

Popular posts from this blog

r - Trouble relying on third party package imports in my package -

Payment information shows nothing in one page checkout page magento -