Crash in ListView at AbsListView.obtainView for ListActivity

前端 未结 4 1749
时光取名叫无心
时光取名叫无心 2020-12-05 06:23

I\'m watching content updates on a ListActivity using a ContentObserver as follows:

protected void onCreate(Bundle savedState)
   {
        super.onCreate(sa         


        
4条回答
  •  孤城傲影
    2020-12-05 07:02

    If you have a list and extend BaseAdapter or Adapter to get a custom list, make sure that getView returns a non-null value.

    If you have a tabbed view and one of your fragment is a list that override Adapter/BaseAdapter and getView returns null you will get this problem.

提交回复
热议问题