Using FragmentTransaction with a DialogFragment

前端 未结 4 1912
后悔当初
后悔当初 2021-02-05 18:03

So I\'ve created a DialogFragment that is shown as a dialog via this technique

Now that it\'s launched and upon a user interaction within this popup I want to slide in a

4条回答
  •  渐次进展
    2021-02-05 19:00

    there actualy is a container as you can see in the onCreateView method. You use the container to create your view.

        public View onCreateView(LayoutInflater inflater, ViewGroup container,
            Bundle icicle) {
        Log.d(TAG, "onCreateView");
        View v = inflater
                .inflate(R.layout.move_folder_dialog, container, false);
    

    It seems like the FragmentManager is not able to get the container.

    Could this be a bug?

提交回复
热议问题