Android - why is this telling me “Content view not yet created”?

前端 未结 3 962
别那么骄傲
别那么骄傲 2020-12-14 08:20

This is a populating a listview on a fragment from a database:

public View onCreateView(LayoutInflater inflater, ViewGroup container,
           Bundle saved         


        
3条回答
  •  天命终不由人
    2020-12-14 08:59

    I solved it by moving the adapter and the getListview to onActivityCreated(...).

    onCreateView just inflates and returns the layout.

提交回复
热议问题