Display “No Item” message in ListView

后端 未结 6 1583
清酒与你
清酒与你 2020-12-07 20:31

I\'ve created some composie UIs in my android apps and there are some ListView controls -among other controls- inside a view. Because of this, I have used \"Activity\" as my

6条回答
  •  天涯浪人
    2020-12-07 21:08

    You're looking for the empty view of a ListActivity:

    ListActivity

    If you're using ListView you can use the method setEmptyView():

    setEmptyView

提交回复
热议问题