Create listview in fragment android

后端 未结 5 546
难免孤独
难免孤独 2020-12-05 07:24

As the title I want to create a listview with custom row in Fragment. My code below.

Fragment class

public class PhotosFragment extends Fragment{

pu         


        
5条回答
  •  情深已故
    2020-12-05 07:42

    you need to give:

    public void onActivityCreated(Bundle savedInstanceState)    
    {
      super.onActivityCreated(savedInstanceState);
    }
    

    inside fragment.

提交回复
热议问题