从片段中调用片段

时间:2014-01-14 05:34:49

标签: java android android-fragments android-activity

我有一个片段,在正确猜出答案后会显示一个对话框。 在对话框中单击“下一步”时,如何调用NEXT片段需要做什么?感谢

@Override
        public void onClick(View v) {
            // TODO Auto-generated method stub
            new AlertDialog.Builder(getActivity())
            .setTitle("Well done")
            .setMessage("That is correct! \n Click next to continue")
            .setPositiveButton("Next", new DialogInterface.OnClickListener() {

                @Override
                public void onClick(DialogInterface dialog, int which) {
                    // TODO Auto-generated method stub
                       ????? ?????????
                       ????? ?????????



                }
            })
            .setIcon(R.drawable.img_apple)
            .show();

0 个答案:

没有答案