ACTION_DOWN但指针已经关闭。可能缺少先前手势的ACTION_UP

时间:2013-03-15 07:09:56

标签: android android-alertdialog android-tabactivity

我在选项卡内部有一个列表视图,这是第一次显示我点击列表时这个警报正常显示的另一个选项卡内部。但是当我点击另一个列表而不更改选项卡时显示此错误

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;
   //---------------------------------------------------------------------------------------------------------

}

0 个答案:

没有答案