Android + ListFragment with a custom view hierarchy

后端 未结 5 849
名媛妹妹
名媛妹妹 2021-02-12 22:28

I\'m attempting to customize the fragment layout by returning my own view hierarchy from onCreateView(LayoutInflater, ViewGroup, Bundle). This inflates my custom v

5条回答
  •  无人及你
    2021-02-12 23:06

    getSupportFragmentManager().beginTransaction().add(android.R.id.content, list).commit();
    

    List is not accepted, it's looking for a fragment.

提交回复
热议问题