我在一个选项卡内有一个列表视图,它第一次在另一个选项卡内显示,当我单击列表时,此警报正确显示。但是当我单击另一个列表而不更改选项卡时,它显示此错误
TouchEvent: ACTION_DOWN but pointers are already down. Probably missing ACTION_UP from previous gesture.
我的警报看起来像这样
@Override
public boolean onCreateOptionsMenu(Menu menu) {
//MenuInflater inflater = getMenuInflater();
//inflater.inflate(R.menu.downloadmennu, menu);
//---------------------------------------------------------------------------------------------------------
AlertDialog.Builder alertDialog = new AlertDialog.Builder(Question_Download.this.getParent().getParent());
alertDialog.setTitle("Make your choice...");
alertDialog.setMessage("What do you want to download?");
alertDialog.setIcon(R.drawable.save_file_floppy);
alertDialog.setPositiveButton("Mock Exam", new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int which)
{
downloadOptionSelected = DownloadOptions.MockExam;
isMock = true;
AppPreferenceStatus.setStudyDownload(CurContext,CourseMatIntent.MockExam);
MockExamActivity(chapterPosition);
}
});
alertDialog.setNeutralButton("Study Mats.", new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int which)
{
downloadOptionSelected = DownloadOptions.StudyMaterials;
AppPreferenceStatus.setStudyDownload(CurContext,CourseMatIntent.StudyMaterials);
StudyMatActivity(chapterPosition);
}
});
alertDialog.setNegativeButton("Cancel", new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int which)
{
}
});
alertDialog.show();
return true;
//---------------------------------------------------------------------------------------------------------
}