我有一个片段,在正确猜出答案后会显示一个对话框。 在对话框中单击“下一步”时,如何调用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();