【问题标题】:how to show progress dialog onitemclick, android如何在onitemclick上显示进度对话框,android
【发布时间】:2011-06-29 20:06:30
【问题描述】:

您好,我创建了一个活动名称为 ZBC。在我创建自定义列表视图的地方,我可以使用列表视图上的 OnItemClickListener 的 onItemClick() 方法检测点击事件。我希望在单击 ListView 时显示进度对话框。我使用了以下代码,但没有得到 ProgressDialog

如何在 onItemClick 方法中显示进度对话框

ProgressDialog.show(ABC.this, "", "Loading...", true);

但我没有得到 ProgressDIalog

如何在onitemclick上显示进度对话框,android

【问题讨论】:

    标签: android progressdialog


    【解决方案1】:

    我在我的应用程序中使用了这个:

    ProgressDialog.show(Main.this, null, getText(R.string.loading), true, true);

    标题为null且非空字符串,可取消。

    您在哪里设置了 onItemClickListener,一些内容可能会有所帮助?也许你在错误的地方调用它。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2016-05-21
      • 2012-05-13
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-11-16
      • 2020-11-03
      • 2012-06-11
      相关资源
      最近更新 更多